PowerShell for Windows Admins:

December, 2009

1

December 29, 2009  12:21 PM

Hotfixes



Posted by: Richard Siddaway
Operating System

 

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

  Bookmark and Share     0 Comments     RSS Feed     Email a friend

December 21, 2009  11:41 AM

Class Descriptions



Posted by: Richard Siddaway
PowerShell, WMI

We have seen how to find the classes associated with a particular aspect of our system e.g.

Get-WmiObject  -List  *disk*

We will see this one again soon when we turn our attention to disks

One thing we can’t get directly is a description of the class so we can...


December 21, 2009  7:23 AM

Working with the OS



Posted by: Richard Siddaway
Operating System

We’ve seen what information we can derive on the Operating System from Win32_OperatingSystem but is there anything we can actually do to our systems?

There are a handful of methods available to us – mainly to do with shutting down the system

PS> Get-WmiObject -Class...


December 19, 2009  7:13 AM

Using a script



Posted by: Richard Siddaway
Operating System

 

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


December 19, 2009  4:45 AM

System Discovery Part 4



Posted by: Richard Siddaway
Operating System

 

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


December 16, 2009  3:27 PM

System Discovery Part 3



Posted by: Richard Siddaway
Operating System

The class description for Win32_OperatingSystem can be found here.  Access to the WMI reference information starts at

Bookmark and Share     0 Comments     RSS Feed     Email a friend


December 15, 2009  4:04 PM

System Discovery Part 2



Posted by: Richard Siddaway
Operating System

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


December 14, 2009  12:12 PM

WMI and Windows firewall



Posted by: Richard Siddaway
Firewall

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


December 13, 2009  4:58 AM

System Discovery Part 1



Posted by: Richard Siddaway
Operating System

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


December 6, 2009  12:57 PM

WMI and PowerShell



Posted by: Richard Siddaway
WMI

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


1

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: