Compartir a través de


Connect dialog box

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Connect dialog box

Before you can use the functions of WBEMTest, you must log on to WMI. Click Connect on the Windows Management Instrumentation Tester dialog box to log on to WMI. The Connect dialog box appears.

Typically, you can accept the default settings displayed in the Connect dialog box, described as follows.

  • The Namespace boxes displays the default namespace for your computer. You can specify a different namespace on your computer or on another computer. For example, for access to the classes of the Win32 provider, you can specify root\cimv2. To access the cimv2 namespace on a remote computer named myserver, you can specify \\myserver\root\cimv2. To access remote computers, you must grant permission to read or write from the remote computer using the WMI Control application, Wbemcntl.exe.

  • The Connection: boxes specify properties of the connection to WMI. The Using: box specifies that IWbemLocator is used for obtaining the initial namespace pointer to Windows Management on a particular host computer. The Returning: box specifies that a IWbemServices pointer is used for accessing Windows Management information. The Completion box specifies that processing is synchronous.

  • The Credentials boxes enable you to specify a user name, password, and authority. You can log on to WMI using credentials different from those of the user who is currently logged on. If you leave these boxes blank, WMI uses the settings of the current Windows logged on user.

  • The Locale box enables you to specify a different locale by entering a localization code. To use the current locale, leave this box blank. Otherwise, it it must contain the location from which you want information. For Microsoft locale identifiers, the format of the string is "MS_xxx", where xxx is a string in hexadecimal form that indicates the Locale Identifier (LCID). For example, American English would appear as "MS_409".

  • The How to interpret empty password option buttons control what happens if you leave the password box blank. WMI processes a blank password differently from no password at all. The default value for this box is NULL and causes WBEMTest to use the current Windows logged on user password to connect to WMI. To log on to WMI using an empty password, select the Blank option button.

  • The Impersonation level option buttons enable you to set the Distributed COM (DCOM) impersonation level that WBEMTest typically uses. In most cases, you can use the default value, Impersonate,for this option button. However, some providers might require specific impersonation settings. Consult the documentation for the provider you are using if you are not sure which value to use. Additionally, the impersonation level that you specify must be applicable to the operating system you use. For example, if you specify an impersonation level of Delegate and WBEMTest is not running on a computer that uses the Windows XP Home Edition or Windows XP Professional operating system, this setting is ignored.

    For more information about impersonation, see Impersonation Level Enumeration.

  • The Authentication level option buttons enable you to specify the Distributed COM (DCOM) authentication level you want to use. These authentication levels control how information is authenticated by DCOM. Typically, you can use Packet, the default value for this option button.

For more information on WBEMTest, see COM API for WMI. Also see the Windows Management Instrumentation documentation at the Microsoft Platform SDK Web site