Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The WMI Control is an MMC snap-in located in the Control Panel and is used to set WMI namespace security manually on a local computer. You can also set the default namespace for scripting.
The following procedure describes how to locate the WMI Control.
To locate the WMI control
The following procedure describes how to use the WMI control to set up the security for a namespace as a template, then programmatically obtain the security settings to set security for other namespaces.
To set namespace security with the WMI control
You can also use Windows Management Instrumentation Command-Line (WMIC) to set namespace security. For more information, see wmic.
If a script does not connect explicitly to a namespace when connecting to WMI, then WMI uses the default namespace specified in this control. The default is also found in the registry entry as follows:
HKEY_LOCAL_MACHINE
SOFTWARE
Microsoft
WBEM
Scripting
Default
Namespace
Because the default namespace is easy to change, either with this control or programmatically by calling methods of StdRegProv, specify the namespace when connecting to WMI either through the moniker or calls to SWbemLocator.ConnectServer. For more information, see Creating a WMI Script
To set the default namespace for scripts
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today