Showing archive results for 2014

Oct 5, 2014
Post comments count0
Post likes count0

Weekend Scripter: Give Your PowerShell Console a Glassy Theme

Doctor Scripto

Summary: Boe Prox shows how to give the Windows PowerShell console a glass-like look. Honorary Scripting Guy, Boe Prox, here today filling in for my good friend, The Scripting Guy. Have you ever sat at your desk while working in the Windows PowerShell console and thought, “Wouldn’t it be great if this console had a more unique look? Per...

Scripting Guy!Windows PowerShellguest blogger
Oct 4, 2014
Post comments count0
Post likes count0

PowerTip: Find How Many Scripts Use Write-Host

Doctor Scripto

Summary: Use Windows PowerShell to find how many scripts use the Write-Host cmdlet.  I am trying to improve how I write Windows PowerShell scripts, and I want to reduce the number of times I use            Write-Host. How can I find how many times I used this cmdlet in my scripts?  Use the ...

Scripting Guy!Windows PowerShellPowerTip
Oct 4, 2014
Post comments count0
Post likes count0

Weekend Scripter: Change PowerShell Get-Help to Display Examples

Doctor Scripto

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 when the...

Scripting Guy!Windows PowerShellscripting techniques
Oct 3, 2014
Post comments count0
Post likes count0

PowerTip: Change Color of PowerShell Errors

Doctor Scripto

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'

Scripting Guy!Windows PowerShellPowerTip
Oct 3, 2014
Post comments count0
Post likes count0

Adding Local Users to Local Groups

Doctor Scripto

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 things...

Scripting Guy!Windows PowerShellother Directory Services