SWbemSecurity object

The SWbemSecurity object gets or sets security settings, such as privileges, COM impersonations, and authentication levels assigned to an object. The SWbemLocator, SWbemServices, SWbemObject, SWbemObjectSet, SWbemObjectPath, SWbemLastError, and SWbemEventSource objects have a Security_ property, which is the SWbemSecurity object. When you retrieve an instance or view the WMI security log, you might need to set the properties of the Security_ object.

The VBScript CreateObject call cannot create the Security object. The security settings in this object do not identify the authentication, impersonation, or privilege settings on a connection to WMI, or the security in effect for the proxy when an object is delivered to a sink in an asynchronous call. For more information, see Maintaining WMI Security.

Members

The SWbemSecurity object has these types of members:

Properties

The SWbemSecurity object has these properties.

Property Access type Description
AuthenticationLevel
Read/write
Numeric value that defines the COM Authentication level that is assigned to this object. This setting determines how you protect information sent from WMI.
ImpersonationLevel
Read/write
Numeric value that defines the COM Impersonation level that is assigned to this object. This setting determines if processes owned by WMI can detect or use your security credentials when making calls to other processes.
Privileges
Read-only
An SWbemPrivilegeSet object that defines privileges for this object. For more information, see Running with Special Privileges.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Wbemdisp.h
Type library
Wbemdisp.tlb
DLL
Wbemdisp.dll
CLSID
CLSID_SWbemSecurity
IID
IID_ISWbemSecurity

See also

Scripting API Objects

Maintaining WMI Security

Setting Client_Application_Process Security

WbemAuthenticationLevelEnum

WbemImpersonationLevelEnum

WbemPrivilegeEnum