Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 XP

Minimum supported server

Windows Server 2003

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

See also

Setting Client_Application_Process Security
WbemAuthenticationLevelEnum
SWbemSecurity

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.