PowerShell for Windows Admins:

May, 2011

May 30, 2011  7:36 AM

PowerShell UG–June 2011 reminder

Posted by: Richard Siddaway
PowerShell, User Group

Don’t forget to add the June meeting of the UK PowerShell User group to your calendar.  Its June 21 at 7.30pm BST. Details available from

Bookmark and Share     0 Comments     RSS Feed     Email a friend

May 29, 2011  2:57 AM

Manning Deal of the Day–29 May

Posted by: Richard Siddaway
Books, PowerShell v2, WMI

Today, for one day only, get 50% off PowerShell and WMI MEAP or MEAP+ebook.


The code is dotd0529cc when you order from www.manning.com


The same code can be used for PowerShell in Action – second edition and...

May 27, 2011  12:17 PM


Posted by: Richard Siddaway
Hardware, Windows 7

A number of the classes in root\wmi return results from more than one class. That sounds odd but it can be explained by an example.

The namespace contains a number of classes related to the battery in laptops

gwmi -Namespace root\wmi -List *battery*

MSBatteryClassEvent ...

May 26, 2011  12:50 PM

root\wmi – speeding the testing

Posted by: Richard Siddaway
PowerShell v2, Windows 2008 R2, Windows 7, WMI

Testing the individual classes in root\wmi is a pain – so its time for some brute force.  I’ll select a group of classes and test the selection

gwmi -Namespace root\wmi -List system* | fw


I can then iterate through them calling get-wmiobject.


May 26, 2011  12:42 PM

root\wmi – MS_SystemInformation

Posted by: Richard Siddaway
Hardware, PowerShell v2, Windows 2008 R2, Windows 7, WMI

Continuing our exploration of the murky jungle that is the root\wmi namespace we find a number of classes related to system configuration

gwmi -Namespace root\wmi -List *system* | fw


Of theses the only one I could get a respnse from on Windows 7 or Windows 2008 R2...

May 25, 2011  1:17 PM

root\wmi – ProcessorBiosInfo

Posted by: Richard Siddaway
Processor, Windows 7

The root\wmi namespace contains a massive number of classes. Unfortunately there appears to be very little documentation available for these classes. Another issue is that many of classes do not appear to return anything (at least on my Windows 7 system – further testing is required).


May 22, 2011  4:35 AM

New PAM version

Posted by: Richard Siddaway
PowerShell v2, PSAM

I’ve added the 0.6 release of the PowerShell Admin Modules to codeplex - http://psam.codeplex.com/

This release adds two modules

PAMADSNAPSHOT – functions for work with AD snapshots in Windows 2008...

May 21, 2011  3:01 AM

Testing network connectivity

Posted by: Richard Siddaway

One of the standard troubleshooting tasks when investigating a problem is deciding if the machine can communicate on the network. The approach is usually

  • ping the loop back address to check TCP/IP is working
  • ping the machines own address
  • ping the default...

May 19, 2011  1:22 PM

PowerShell in Action

Posted by: Richard Siddaway
Books, PowerShell v2

The second edition of Bruce Payette’s PowerShell in Action is available. It  can be ordered from http://www.manning.com/payette2/.  The electronic version includes a free electronic version of the...

May 19, 2011  12:31 PM

Method definitions

Posted by: Richard Siddaway
PowerShell v2

When we are dealing with .NET objects we have methods and properties to deal with. Properties are easy.

lets create a simple object



put our string object into get-member to see the properties

$str | Get-Member...

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: