Showing archive results for September 2013

Sep 16, 2013
Post comments count0
Post likes count0

Conditional User Profile Deletion Revisited

Doctor Scripto

Summary: Guest blogger, Bob Stevens, revises his script for conditional user profile removal. Microsoft Scripting Guy, Ed Wilson, is here. I am happy to welcome back guest blogger, Bob Stevens. Take it away Bob… Previously I released a blog post entitled Weekend Scripter: Use PowerShell for Conditional User Profile Removal. If you have not r...

Scripting Guy!Windows PowerShellguest blogger
Sep 15, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Search a Hash Table

Doctor Scripto

Summary: Quickly search a hash table in Windows PowerShell.  How can I easily search for information in a hash table full of data in Windows PowerShell?  Plug in the name of a value, for example: [array]$Hashtable=$NULL$Hashtable+=@{Purple=54}$Hashtable+=@{People=37}$Hashtable+=@{Eater=78} To find the value called People, add the nam...

Windows PowerShellPowerTipguest blogger
Sep 15, 2013
Post comments count0
Post likes count0

Weekend Scripter: Create a Visual Piano with Windows PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to interact with the console display. Honorary Scripting Guy, Sean Kearney, here—filling in for our good friend, Ed Wilson. For some reason, I find a need to open today’s blog post like a soap opera—you know, “Last time for Sean Kearney on the Hey, Scripting Guys! Blog.” Sigh, it feels t...

Windows PowerShellguest bloggerWeekend Scripter
Sep 14, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Wait for a Key Press

Doctor Scripto

Summary: Learn about the Windows PowerShell version of “Pause.”  How can I use Windows PowerShell to wait for a key in scripts like I used to use “Pause” in the command console?  Use the $Host variable in the console: $HOST.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | OUT-NULL$HOST.UI.RawUI.Flushinputbuffe...

Windows PowerShellPowerTipguest blogger
Sep 14, 2013
Post comments count0
Post likes count0

Weekend Scripter: Use Hash Table with PowerShell to Create a Simple Piano

Doctor Scripto

Summary: Use a hash table to play musical notes in the console. Honorary Scripting Guy, Sean Kearney, here—filling in for our good friend, Ed Wilson. Today I decided to have some fun. It’s the weekend, I was bored, and I had too much time on my hands. (I have friends who suggest this happens a lot!) I knew that in Windows PowerShell, I ...

Windows PowerShellguest bloggerWeekend Scripter