Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Create Self-Updating Variable

Summary: Learn how to create a self-updating variable. (image)  How can I create a variable that will automatically update when I call it? (image)  Use Set-PSBreakPoint to set a variable that will always have the current date and time (or only time): Set-PSBreakpoint -Variable Time -Mode Read -Action {$Global:Time=(Get-Date...