Microsoft KB Archive/252446: Difference between revisions
m (1 revision imported: importing part 2) |
m (Text replacement - """ to """) |
||
Line 35: | Line 35: | ||
In the studio.htm file, line 116 is as follows: | In the studio.htm file, line 116 is as follows: | ||
<pre class="CODESAMP"> top.frames( | <pre class="CODESAMP"> top.frames("ClassnavFrame").ClassNavigator.OnReadySignal </pre> | ||
To set the default namespace to \Root\default, change the code to this: | To set the default namespace to \Root\default, change the code to this: | ||
<pre class="CODESAMP"> top.frames( | <pre class="CODESAMP"> top.frames("ClassnavFrame").ClassNavigator.Namespace="root\default" | ||
top.frames( | top.frames("ClassnavFrame").ClassNavigator.OnReadySignal </pre> | ||
<br /> | <br /> | ||
<br /> | <br /> |
Latest revision as of 13:51, 21 July 2020
HOWTO: Change the Default Namespace in Windows Management Instrumentation CIM Studio |
Q252446
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK)
SUMMARY
The Windows Management Instrumentation (WMI) Common Information Model (CIM) Studio connects to the \Root\CIMV2 namespace by default. This article demonstrates how to change the default namespace.
MORE INFORMATION
You can change this to a different namespace by modifying CIM Studio's .htm files.
NOTE: Please make a backup copy of any .htm files before you make any modifications.
In the studio.htm file, line 116 is as follows:
top.frames("ClassnavFrame").ClassNavigator.OnReadySignal
To set the default namespace to \Root\default, change the code to this:
top.frames("ClassnavFrame").ClassNavigator.Namespace="root\default" top.frames("ClassnavFrame").ClassNavigator.OnReadySignal
WMI CIM Studio consists of the following four .htm files:
* studio.htm
- studiobanner.htm
- classnav.htm
- editor.htm
These files use the WMI ActiveX controls to provide access to WMI. The Platform SDK installs these files to the \Program Files\Microsoft Platform SDK\Bin\WMI folder.
The default namespace of \Root\CIMV2 is currently hard-coded in the WMI Namespace Picker control. In order to override this value, you must explicitly set the Namespace property of the WMI Namespace Picker control.
Additional query words: WMI WBEM CIM Studio default namespace
Keywords : kbWMI
Issue type : kbhowto
Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch
Last Reviewed: May 13, 2000 |