PowerShell for Windows Admins:

WMI


October 26, 2011  2:09 PM

PowerShell, Storage, WMI and Windows Server 8



Posted by: Richard Siddaway
PowerShell 3, Windows 8, WMI

A must read if you are interested in any of these

Bookmark and Share     0 Comments     RSS Feed     Email a friend

October 24, 2011  11:49 AM

PowerShell and WMI – new MEAP release



Posted by: Richard Siddaway
PowerShell v2, WMI

Four new chapters have been added to the MEAP  (early access) for PowerShell and WMI

Chapter 14 - Users and security

Chapter 15 - Logs, jobs, and performance

Chapter 16  - Hyper-V

Chapter 17 - Windows Remote Management

 

Chapter...


October 19, 2011  2:08 PM

Discovering NIC that has a specific IP Address



Posted by: Richard Siddaway
Deep dive, Network, PowerShell v2, WMI

One question (of many) that came up at that European Deep Dive (more on that later) was finding the particular network adapter associated with an IP Address.  The problem is that IP Address (in the later versions of Windows) is a string array in WMI

Get-WmiObject -Class...


October 4, 2011  1:27 PM

Win32_OSRecoveryConfiguration class



Posted by: Richard Siddaway
PowerShell v2, WMI

The Win32_OSRecoveryConfiguration class represents the types of information that will be gathered from memory when the operating system fails. This includes boot failures and system crashes.

One very important parameter is DebugInfoType  which sets the type of debugging information...


September 27, 2011  1:49 PM

WMI provider and MOF file



Posted by: Richard Siddaway
PowerShell v2, WMI

WMI is installed as a series of providers. The information on creating the classes comes from MOF files. I was recently asked about a problem with a specific class & could it be restored – in this case it was easier to rebuild WMI as the provider created a large part of the root\cimv2...


September 25, 2011  1:35 PM

Proxy function for Get-WmiObject



Posted by: Richard Siddaway
PowerShell v2, WMI

There are many people who don’t like to see the WMI system properties

PS> Get-WmiObject -Class Win32_OperatingSystem | select __*


__GENUS          : 2


September 14, 2011  1:57 PM

The Experts Conference April 2011–My session



Posted by: Richard Siddaway
PowerShell v2, WMI

Dmitry has just posted the video of the session I did at the PowerShell deep dive @ TEC in April

Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 8, 2011  2:46 PM

Quirks of Get-member and WMI objects



Posted by: Richard Siddaway
PowerShell v2, WMI

I have been asked about discovering the methods available on a WMI object. I’ve mentioned the GetMethodParameters method a few times but it can be difficult to find.  Normally if we want to discover the methods on an object we would do this

 

Get-WmiObject...


September 6, 2011  11:29 AM

Test for domain membership



Posted by: Richard Siddaway
Active Directory, PowerShell v2, WMI

Quick function to determine if a given machine is in a domain or workgroup

function test-domain{             
[
				
				
  Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 6, 2011  11:11 AM

Invoke-WmiMethod–Type mismatch error



Posted by: Richard Siddaway
PowerShell v2, WMI

Sometimes when we try to use Invoke-WmiMethod with an argument list we get an error

PS> Invoke-WmiMethod -Class Win32_Share -Name Create -ArgumentList "c:\test", "Test57", 0
Invoke-WmiMethod : Type mismatch
At line:1 char:17
+...