Scripting Blog [archived]

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

Use PowerShell to Detect if Hypervisor is Present

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to determine if a hypervisor is present (image)  Hey, Scripting Guy! I have been trying to use WMI to determine if a server has the hypervisor present. I found the WMI class, and even the properties I need. But alas, the WMI class seems to be broken, and it ...

Use PowerShell to Find and Uninstall Software

Summary: Learn how to use Windows PowerShell to get software installation locations, and to uninstall software from remote computers. (image) Hey, Scripting Guy! We have a dumb application that we have to use at work. The company has released a new version of this application, and I am trying to write a Windows PowerShell script to uninstall ...

Create a Custom Object from WMI by Using PowerShell

Summary: Create a custom object from WMI to display processor and operating system information using Windows PowerShell.   (image) Hey, Scripting Guy! Your script yesterday was pretty cool. However, in addition to obtaining information about the processor, I also need to know operating system is 32-bit or 64-bit, the version of Windows ...

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

Use the BSonPoSH PowerShell Module to Simplify AD Tasks

Summary: Learn how to use the BSonPoSH Windows PowerShell module to simplify Active Directory management tasks.   (image) Hey, Scripting Guy! I am wondering if there are any modules that can help me with routine, daily administration tasks. I really hate to re-invent the wheel, so if you can point the way to a nice, juicy module, I would ...