Scripting Blog

A place to learn about PowerShell and share stories of automation

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

2012 Scripting Games Advanced Event 9: Perform an Inventory

  Summary: In Advanced Event 9, you are required to perform a hardware inventory and write the information to an XML file.   About this event Event scenario You are a network manager at a medium-sized organization, and it is time to perform an inventory of computers on the network. You need to collect the following information: ...

2012 Scripting Games Beginner Event 8: Is Computer Desktop or Laptop?

  Summary: In Beginner Event 8, you are required to determine if a computer is a desktop computer or a laptop computer.   About this event Event scenario You are the desktop manager at a midsized enterprise company. It is inventory time, and you need to get a count of the number of laptop computers and the number of desktop ...

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

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

Feedback usabilla icon