Scripting Blog

A place to learn about PowerShell and share stories of automation

Weekend Scripter: Lessons Learned from the 2012 Advanced Scripting Games

Summary: The winner of the advanced division of the 2012 Windows PowerShell Scripting Games gives tips for success.Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blogger, Rohn Edwards, the winner of the Advanced category in the 2012 Scripting Games. Rohn and Lido Paglia, winner of the Beginner category, will be joining us ...

Use PowerShell and WMI to Get Processor Information

Summary: Learn how to get the number of processor cores via WMI and Windows PowerShell.Hey, Scripting Guy! I need to perform an audit of computers on our network. Specifically, I am tasked with obtaining CPU information. I need the processor speed, number of cores, and number of logical processors. I feel like I should be able to use Windows ...

Configure PowerShell Cmdlet Default Values by Using Splatting

Summary: Learn how to use the Windows PowerShell splatting feature to avoid typing repetitive cmdlet parameters. Hey, Scripting Guy! I am wondering if you can help me. There are some cmdlets that have a lot of parameters. I need to fill these parameters out in order to cause the cmdlet to work properly, but once I have figured out the ...

Use ShowUi to Easily Create Graphical Interfaces for PowerShell

Summary: Use ShowUi, a free Windows PowerShell module, to simplify creating graphical interfaces for scripts. Microsoft Scripting Guy Ed Wilson here. Today, I have a guest article from my good friend James Brundage. Here is a little bit about him.  James Brundage is the founder of Start-Automating, a company dedicated to saving ...

Use PowerShell Splatting to Simplify Parameter Sets

Summary: Microsoft Scripting Guy, Ed Wilson, illustrates step-by-step how to use Windows PowerShell splatting to simplify working with parameters.Weekend ScripterMicrosoft Scripting Guy, Ed Wilson, is here. It is a perfectly lovely weekend, and things are finally beginning to settle back down after two weeks of travel. The SQL Rally in ...