API Reference
Command
Add-CxWmiNamespacePermission
Adds Allow/Deny rights to a WMI namespace DACL.
Examples
Example 1
Add-CxWmiNamespacePermission -Namespace root\\cimv2 -Identity DOMAIN\\Helpdesk -Rights RemoteEnable
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
Add-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