Showing results for Boe Prox - 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
Dec 5, 2014
0
0

Use the PowerShell Debugger

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how to debug scripts in Windows PowerShell. Honorary Scripting Guy and Windows PowerShell MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. This is the final part in a series of five posts about troubleshooting Windows PowerShell scripts and functions. The series includes: Over the course ...

Scripting Guy!Windows PowerShellBoe Prox
Dec 4, 2014
0
0

PowerTip: Use PowerShell to View Trace Sources

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to view all trace sources.  How can I use Windows PowerShell to see all available trace sources?  Use Get-TraceSource cmdlet: Get-TraceSource | Select Name, Description PS C:> get-tracesource | Select Name, Description  Name            &nbs...

Scripting Guy!Windows PowerShellPowerTip
Dec 4, 2014
0
0

Trace Your Commands by Using Trace-Command

Doctor Scripto
Doctor Scripto

Summary: Boe Prox uses Trace-Command to understand commands. Honorary Scripting Guy and Windows PowerShell MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. This is the fourth part in a series of five posts about troubleshooting PowerShell scripts/functions. The series includes: Today I am talking about using Tra...

Scripting Guy!Windows PowerShellBoe Prox
Dec 3, 2014
0
0

PowerTip: Use PowerShell to Hide Parameter From IntelliSense

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to hide a parameter from IntelliSense.  How can I use Windows PowerShell to hide a parameter from IntelliSense?  Introduced in Windows PowerShell 4.0, you can specify the DontShow attribute            for the [parameter()] type to hide that...

Scripting Guy!Windows PowerShellPowerTip