API Reference
Command
Set-CxWmiNamespacePermission
Sets exact rights (Allow or Deny) for identities on a WMI namespace (replaces DACL).
Examples
Example 1
Set-CxWmiNamespacePermission -Namespace root\\subscription -Identity DOMAIN\\Ops -Rights ExecuteMethods,FullWrite,ReadSecurity
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Set-CxWmiNamespacePermission [-ComputerName <string>] -Namespace <string> -Identity <string[]> -Rights <ExecuteMethods> [-Deny] [<CommonParameters>]#Parameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- Namespace string
- Gets or sets the Namespace parameter.
- Identity string[]
- Account or security identifier (SID) to apply.
- Rights WmiNamespaceRights
- Access rights or permission mask to apply. Possible values: ExecuteMethods, FullWrite, PartialWrite, ProviderWrite, EnableAccount, RemoteEnable, ReadSecurity, WriteDac
- Possible values:
ExecuteMethods,FullWrite,PartialWrite,ProviderWrite,EnableAccount,RemoteEnable,ReadSecurity,WriteDac - Deny SwitchParameter
- Gets or sets the Deny parameter.
Outputs
System.Boolean