Showing results for Boe Prox - Scripting Blog [archived]

Dec 3, 2014
Post comments count0
Post likes count1

Enforce Better Script Practices by Using Set-StrictMode

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how to use Set-StrictMode to write better scripts. Honorary Scripting Guy and Windows PowerShell MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. This is the third part in a series of five posts about troubleshooting Windows PowerShell scripts and functions. The series includes: If you...

Scripting Guy!Windows PowerShellBoe Prox
Dec 2, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Remove an Item from an Array

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell remove an item from an array. How can I remove an item from an array?Use the ArrayList class, which has the Remove() method (instead of using System.Array,            which does not have this method):PS > $ArrayList = New-Object System.Collections.Ar...

Scripting Guy!Windows PowerShellPowerTip
Dec 2, 2014
Post comments count0
Post likes count0

Troubleshoot by Using Set-PSDebug

Doctor Scripto
Doctor Scripto

Summary: Boe Prox uses the Set-PSDebug cmdlet to assist in troubleshooting. Honorary Scripting Guy and Windows PowerShell MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. This is the second part in a series of five posts about troubleshooting Windows PowerShell scripts and functions. The series includes: Today I...

Scripting Guy!Windows PowerShellBoe Prox
Dec 1, 2014
Post comments count0
Post likes count0

PowerTip: Avoid Prompt When Using –Debug

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how to avoid being prompted when using –Debug.  I love using –Debug in functions to figure out what is going on, but how can I avoid being prompted            each time I run into Write-Debug in my code?  After you declare your parameters, check for...

Scripting Guy!Windows PowerShellPowerTip
Dec 1, 2014
Post comments count0
Post likes count0

Provide Support by Using Verbose and Debug Streams

Doctor Scripto
Doctor Scripto

Summary: Provide code support by using Verbose and Debug streams. Honorary Scripting Guy and Windows PowerShell MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. This is the first part in a series of five posts about troubleshooting Windows PowerShell scripts and functions. The series includes: When you write a...

Scripting Guy!Windows PowerShellBoe Prox