Summary: Microsoft Scripting Guy, Ed Wilson, talks about changing the Get-Help cmdlet so it always displays examples.
Microsoft Scripting Guy, Ed Wilson, is here. For the last several weeks, I have been working on a project at work. The documentation team talked to customers to see how they were using Windows PowerShell, and to see how and ...
Summary: Learn how to change the color of Windows PowerShell errors.
How can I change the color of Windows PowerShell errors in the Windows PowerShell console?
Use $host.PrivateData and supply a new value for ErrorForegroundColor, for example:
$Host.PrivateData.ErrorForegroundColor = 'white'...
Summary: Learn how to use Windows PowerShell to add local users to local groups.
Microsoft Scripting Guy, Ed Wilson, is here. Creating local user objects and local group objects is fine, but to be useful, I need to be able to add users to groups. When working with local accounts, I need to use the ADSI type accelerator to facilitate the way ...
Summary: Easily use Windows PowerShell to reverse an array.
How can I use Windows PowerShell to reverse an array?
Pipe the array to the Sort-Object cmdlet and use the –Descending switch, for example:
$a = 1,2,3,4,5
$b = $a | sort -Descending...
Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating local groups.
Microsoft Scripting Guy, Ed Wilson, is here. Creating a local group works exactly the same way as creating a local user account (see Use PowerShell to Create Local User Accounts). The process involves the following steps:
Notes
At ...