O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling missing WMI providers

About the only thing that could actually go wrong with the original Get-Bios.ps1 script introduced at the beginning of this chapter is related to WMI itself. If the WMI provider that supplies the Win32_Bios WMI class information is corrupted or missing, the script will not work. To check for the existence of the appropriate WMI provider, you will need to know the name of the provider for the WMI class. You can use the WMI Tester (WbemTest), which is included as part of the WMI installation. If a computer has WMI installed on it, it has WbemTest. Because WbemTest resides in the system folders, you can launch it directly from within the Windows PowerShell console by typing the name of the executable. This is shown ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required