Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Use PowerShell and WMI to Get Processor Information

Summary: Learn how to get the number of processor cores via WMI and Windows PowerShell. (image) 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 ...

Configure PowerShell Cmdlet Default Values by Using Splatting

Summary: Learn how to use the Windows PowerShell splatting feature to avoid typing repetitive cmdlet parameters.   (image) 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 ...

Make Windows PowerShell Your Web Client

  Summary: Interact with websites from Windows PowerShell with this how-to post that wraps .NET Framework classes.   (image) Hey, Scripting Guy! I would like to be able to download files and things from the Internet via Windows PowerShell. Is there an easy way to do this? I have not been able to find a Windows PowerShell cmdlet, and ...

Packaging .NET Framework Classes into Windows PowerShell Functions

  Summary: Learn how to correctly package .NET Framework classes into reusable Windows PowerShell advanced functions in this step-by-step solution.   (image) Hey, Scripting Guy! I have been exploring the Microsoft .NET Framework on MSDN and attempting to convert some examples I have found there into Windows PowerShell code. I will ...