TestimoX

API Reference

Command

Add-CxRegistryPermission

Namespace ComputerX.PowerShell
Inputs
System.String System.String[]
Outputs
System.Boolean

Adds an ACE to a registry key DACL.

Examples

Authored help example

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 optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
KeyPath string requiredposition: 1pipeline: true (ByPropertyName)
Gets or sets the KeyPath parameter.
Identity string[] requiredposition: 2pipeline: true (ByValue, ByPropertyName)
Account or security identifier (SID) to apply.
Rights RegistryRights requiredposition: 3pipeline: falsevalues: 14
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 optionalposition: 4pipeline: falsevalues: 2
Specifies whether access is Allowed or Denied. Possible values: Allow, Deny
Possible values: Allow, Deny

Outputs

System.Boolean