TestimoX

API Reference

Command

Set-CxRegistryPermission

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

Sets exact rights for an identity on a registry key DACL (removes prior ACEs for that identity and type).

Examples

Authored help example

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 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