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.
Methods
The SWbemSecurity object does not define any methods.
Properties
The SWbemSecurity object defines the following properties.
| Property | Access type | Description |
AuthenticationLevel | Read-only | 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-only | 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 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Type Library | Wbemdisp.tlb |
| DLL | Wbemdisp.dll |
See Also
- Scripting API Objects
- Maintaining WMI Security
- Setting Client_Application_Process Security
- WbemAuthenticationLevelEnum
- WbemImpersonationLevelEnum
- WbemPrivilegeEnum
Send comments about this topic to Microsoft
Build date: 11/3/2009