Showing results for breakpoint - Scripting Blog [archived]

Dec 5, 2014
0
0

PowerTip: Create Self-Updating Variable

Doctor Scripto
Doctor Scripto

Summary: Learn how to create a self-updating variable.  How can I create a variable that will automatically update when I call it?  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).ToShortTimeString...

Scripting Guy!Windows PowerShellPowerTip

Feedback