API Reference
Command
Add-CxRegistryPermission
Adds an ACE to a registry key DACL.
Examples
Example 1
Add-CxRegistryPermission -KeyPath 'HKLM\\SOFTWARE\\Vendor' -Identity DOMAIN\\Ops -Rights QueryValues
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-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