PowerShell for Windows Admins:

August, 2010


August 31, 2010  2:03 PM

WMI and Network Adapters: 3

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

We have seen how to query WMI for information on network adapters.  But what we didn’t get was information about the addresses allocated to the NICs.  We need a different class for that Get-WmiObject -Class Win32_NetworkAdapterConfiguration However this gives us too much information as it...

August 30, 2010  3:39 AM

PowerShell in Practice offer

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Today Manning are offering 50% their best selling books including PowerShell in Practice. See www.manning.com to order


August 28, 2010  5:07 AM

WQL wildcards

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Get-WmiObject -Class Win32_NetworkAdapter will show us a list of network adapters.  We can narrow this down to a specific adapter Get-WmiObject -Class Win32_NetworkAdapter -Filter "DeviceId='11'" | fl * What if we know that there is a NIC that is labelled as Wireless something or other. ...


August 26, 2010  3:14 PM

WMI and Network Adapters: 2

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Ok – just to help out we can do this to see the useful information we need to complete our IPconfig listing

Get-WmiObject -Class Win32_NetworkAdapter -Filter "NetEnabled='$true'" | Format-List NetConnectionID, Description, MACAddress, Speed

This gets a display like...


August 26, 2010  1:09 PM

WMI and Network Adapters: 1

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Network adapters are a fundamental part of our system – without them our networks grind to a halt because the machines can’t communicate. We have a good tool in ipconfig for looking at NIC information but we can extend this using PowerShell and WMI. Let’s start by seeing what is...


August 23, 2010  12:39 PM

WMI date issue

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Working with WMI dates can be awkward sometimes. For instance if we look at the last boot up time of our system $machine = Get-WmiObject -Class Win32_OperatingSystem PS> $machine.LastBootUpTime 20100823183135.359600+060 We get a non-intuitive result The ConvertToDateTime method can...


August 11, 2010  1:05 PM

Memory configuration

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

We have seen how to discover the total physical memory in a system but how is that memory arranged.


August 10, 2010  1:13 PM

WMI and office 2

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

it seems that the WMI provider I mentioned last time is effectively discontinued in Office 2010.

I’ll see if I can get a machine set up with Office 2007 to investigate further


August 9, 2010  1:55 PM

WMI at the Office

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

If you have Office 2010 installed you should find an msapps12 namespace on your machine.

The classes exposed by this namespace can be found with

Get-WmiObject -Namespace root\msapps12 –List

There are a lot of them! The classes seem to be broken down by Office...


August 8, 2010  12:51 PM

How big’s my dit

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The ntds.dit file is used to store Active Directory data on a domain controller. Knowing how big this file is getting is a useful piece if information. One way is to log on to each domain controller and test the size using Windows explorer. A better way is to use WMI PS> "server02", "dc02"...


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:

We use cookies and other similar technologies (Cookies) to enhance your experience and to provide you with relevant content and ads. By using our website, you are agreeing to the use of Cookies. You can change your settings at any time. Cookie Policy.