WbemAuthenticationLevelEnum
Applies to: desktop apps only
The WbemAuthenticationLevelEnum constants define the security authentication levels. These constants are used with SWbemSecurity and in moniker connections to WMI.
The WMI scripting type library, wbemdisp.tlb, defines these constants. Visual Basic applications can access this library.
Script languages must use one of the following:
- The short name. For example, for WbemAuthenticationLevelPktPrivacy use "PktPrivacy".
- Windows Script Host (WSH) XML file format in the script. For example, this means that the script can use the WbemAuthenticationLevelPkt constant directly.
The following WSH script sets the authentication level. To run the script, save the text in a file with a .wsf extension.
For more information, see Using the WMI Scripting Type Library.<?xml version="1.0" encoding="US-ASCII"?> <job> <reference object="WbemScripting.SWbemLocator"/> <script language="VBScript"> set service = GetObject("winmgmts:") ' Following line uses a symbolic ' constant from the WMI type library service.Security_.authenticationLevel = _ WbemAuthenticationLevelPktPrivacy </script> </job>
The following values can be used to set the authentication level.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
IDL |
|
See also
- Scripting API Constants
- Setting the Default Process Security Level Using VBScript
- Setting Security on an Asynchronous Call in VBScript
- Constructing a Moniker String
- SWbemSecurity
Send comments about this topic to Microsoft
Build date: 3/9/2012