API Reference
Command
Set-CxRegistryPermission
Sets exact rights for an identity on a registry key DACL (removes prior ACEs for that identity and type).
Examples
Example 1
Set-CxRegistryPermission -KeyPath 'HKLM\\SOFTWARE\\Vendor' -Identity DOMAIN\\Ops -Rights FullControl
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-CxRegistryPermission [-ComputerName <string>] -KeyPath <string> -Identity <string> -Rights <QueryValues> [-AccessType <Allow|Deny>] [<CommonParameters>]#Parameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- KeyPath string
- Gets or sets the KeyPath parameter.
- Identity string
- Account or security identifier (SID) to apply.
- Rights RegistryRights
- Access rights or permission mask to apply. Possible values: QueryValues, SetValue, CreateSubKey, EnumerateSubKeys, Notify, CreateLink, ExecuteKey, ReadKey, WriteKey, Delete, ReadPermissions, ChangePermissions, TakeOwnership, FullControl
- Possible values:
QueryValues,SetValue,CreateSubKey,EnumerateSubKeys,Notify,CreateLink,ExecuteKey,ReadKey,WriteKey,Delete,ReadPermissions,ChangePermissions,TakeOwnership,FullControl - AccessType AclAccessType
- Specifies whether access is Allowed or Denied. Possible values: Allow, Deny
- Possible values:
Allow,Deny
Outputs
System.Boolean