Bewerken

Delen via


__SystemSecurity class

The __SystemSecurity system class contains methods that let you access and modify the security settings for a namespace. The __SystemSecurity class is a singleton class in each namespace.

Note

For more information, see Setting Namepace Security Descriptors.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class __SystemSecurity
{
};

Members

The __SystemSecurity class has these types of members:

Methods

The __SystemSecurity class has these methods.

Method Description
Get9XUserList Gets a list of users who are allowed remote access.
Note: This method does not work on supported versions of Windows. Use GetSD instead.
GetCallerAccessRights Returns a mask with each bit that corresponds to an access right.
GetSD Gets the SECURITY_DESCRIPTOR for the namespace to which the user is connected.
GetSecurityDescriptor Gets the security descriptor that controls access to the WMI namespace associated with the instance of __SystemSecurity. The security descriptor is returned as an instance of__SecurityDescriptor.
Set9XUserList Sets a list of users who are allowed remote access.
Note: This method does not work on supported versions of Windows. Use SetSD instead.
SetSD Sets the security descriptor for the namespace to which the user is connected.
SetSecurityDescriptor Writes an updated version of the security descriptor that controls access to the printer. The security descriptor is represented by an instance of __SecurityDescriptor.

Remarks

You can require that client scripts and applications use an encrypted connection for authentication by adding the RequiresEncryption qualifier to the .mof file that creates the namespace. You can also modify an existing namespace by adding this attribute and compile the .mof file again. For more information about how to use RequiresEncryption, see Requiring an Encrypted Connection to a Namespace.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
All WMI namespaces

See also

WMI System Classes

WMI Security Constants

WMI Security Descriptor Objects

Securing WMI Namespaces

Establishing Inheritance of Namespace Security

Access Control Lists (ACLs)

Security_Descriptor