Active Directory WMI provider
Posted by: Richard Siddaway
I stumbled on this namespace on my domain controller - root\directory\ldap – which appears to be a WMI provider for AD. From the information at
I stumbled on this namespace on my domain controller - root\directory\ldap – which appears to be a WMI provider for AD. From the information at
Windows Server 8 & Windows 8 bring a host of new functionality to us. I wanted to try out some of it so created a new VM and installed the OS – went for full GUI for now
Opened PowerShell and ran
Set-ExecutionPolicy remotesigned
Enable-PSRemoting...
Just had the blinding glimpse of the obvious and if I use a default parameter set my problem is solved
function get-CIMRegKeyName{![]()
0 Comments
RSS Feed
Email a friend
March 10, 2012 6:03 AM
Migrating to CIM-part3
Posted by: Richard Siddaway
PowerShell 3, WMI
The last part of the jigsaw is to wrap the CIM functionality in a function
function get-CIMRegKeyName{ [![]()
0 Comments
RSS Feed
Email a friend
March 10, 2012 5:44 AM
Migrating to CIM-part 2
Posted by: Richard Siddaway
PowerShell 3, WMI
We need to find the parameters associated with a WMI method – this information has to include the parameter and data type. WMI also gives a name to the output variable – this becomes a property on the return object.
function March 10, 2012 5:18 AM
Migrating to CIM–part 1
Posted by: Richard Siddaway
PowerShell 3, WMI
I have created many WMI posts on this blog over the years. With PowerShell v3 a new API has been introduced and new cmdlets are available for working with WMI. The new functionality offers many improvements and advantages over using the WMI cmdlets so I thought that a series of articles showing...
March 6, 2012 12:45 PM
UK PowerShell group–March 2012
Posted by: Richard Siddaway
PowerShell 3, User Group, WMI
Here are the details of the March meeting
When: Tuesday, Mar 27, 2012 7:30 PM (GMT)
Where: Virtual*~*~*~*~*~*~*~*~*~*
PowerShell v3 introduces a new way of working with WMI plus the option of creating your own cmdlets directly from WMI classes...
February 25, 2012 10:11 AM
Using [wmiclass] accelerator and string substitution
Posted by: Richard Siddaway
PowerShell, WMI
Tripped over an interesting problem
I want to use the [wmiclass] accelerator because I need to find the key of a WMI class (code borrowed from PowerShell team blog – to be returned when I’ve finished with it)
$t = [WMIClass]$class
$t.properties |
...February 21, 2012 2:24 PM
Win32_AutocheckSetting class
Posted by: Richard Siddaway
Operating System, PowerShell, WMI
I stumbled on this class
Get-WmiObject Win32_AutochkSetting
The useful output is
Caption :
Description :
SettingID : Microsoft...February 12, 2012 4:31 AM
Domain Controller Service Health–revisited
Posted by: Richard Siddaway
Active Directory, PowerShell, WMI
A bit more digging as a follow up to the previous post shows that the NTDS service is shown when PowerShell is run with elevated privileges i.e. Run as Administrator. That means we want to be able to test is PowerShell is running in that mode
The test-dcservicehealth function becomes
...
