PowerShell, Storage, WMI and Windows Server 8
Posted by: Richard Siddaway
A must read if you are interested in any of these
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...
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...
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...
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...
There are many people who don’t like to see the WMI system properties
PS> Get-WmiObject -Class Win32_OperatingSystem | select __*
__GENUS : 2
Dmitry has just posted the video of the session I did at the PowerShell deep dive @ TEC in April
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...
Quick function to determine if a given machine is in a domain or workgroup
function test-domain{ [![]()
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
+...
