PowerShell for Windows Admins:

December, 2009

We have seen how to get information on the Operating System installed on our computers. We can round that out by looking at the hotfixes that are installed on the machine.
Get-WmiObject -Class Win32_QuickFixEngineering
0 CommentsRSS FeedEmail a friend

We have seen how to use our script to access information on the local machine. Ideally we want to be accessing this information from many machines across our enterprise. If we save the script to get-os.ps1 we can use it in a few ways.
if we just want information on a handful of computers we can...

This is out last look at Win32_OperatingSystem. I’ve taken the script we had last time and added a few more calculated fields to determine language, country, locale and codeset information. I’ve left the URLs where I found the information as comments. If you are not UK based you will want...

This is our script to examine the Operating System. I've made it a bit easier to read by using the line continuation character ` (that's a back tick not an apostrophe) Get-WmiObject -Class Win32_OperatingSystem | Format-List CSName, Caption, `
ServicePackMajorVersion, ServicePackMinorVersion,...

Windows Server 2008 and R2 install with the Windows firewall enabled. This will prevent the sort of remote administration we have been discussing. If you try it there will be a long wait before the command times out or you will get some kind of error stating that the server cannot be found or...

WMI can supply a huge amount of information about our systems. The problem is more one of discovering what is available rather than getting the data back.
We can start by looking at the WMI classes available in the default Namespace (root\cimv2)
Get-WmiObject -Namespace 'root\cimv2' -List |...

WMI has been around since the days of Windows NT. We have been able to use it via various tools including VBScript. The formatting of VBScript was poor so the Scriptomatic tool was produced by the Microsoft Script Center to make it easier.
PowerShell support for WMI is a huge step forward...

About This Blog

A blog for Windows administrators, Architects, Consultants and System Integrators maximizing the use of PowerShell and WMI. Simple solutions to everyday problems using two tools that should be available on every Windows system. Save time, save effort, script now!