SWbemSecurity.AuthenticationLevel property
The AuthenticationLevel property is an integer that defines the COM Authentication level that is assigned to this object. This setting determines how you protect information sent from WMI. For more information about authentication levels, see Setting Client_Application_Process Security. In general, it is not necessary to set the authentication level when making WMI API calls. If you do not set this property, the default COM Authentication level for your system is used.
For an explanation of this syntax, see Document Conventions for the Scripting API.
This property is read/write.
Syntax
SWbemSecurity.AuthenticationLevel As Integer
Property value
Remarks
You can set the authentication level of the SWbemServices, SWbemObject, SWbemObjectSet, SWbemObjectPath, and SwbemLocator objects by setting the AuthenticationLevel property to the desired value.
The following example shows how to set the authentication level for an SwbemObject object.
objinstance.Security_.AuthenticationLevel = wbemAuthenticationLevelPkt
You can also specify authentication levels as part of a moniker. The following example sets the authentication level and the impersonation level, and retrieves an instance of Win32_LogicalDisk.
Set objinst = GetObject("WinMgmts:{impersonationLevel=impersonate,"& _ "authenticationLevel=pktPrivacy}" & _ "!root/cimv2:Win32_LogicalDisk='c:'")
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Type library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012
