TestimoX

API Reference

Command

Remove-CxServicePermission

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

Removes specific rights for an identity from a service DACL.

Examples

Authored help example

Example 1


Remove-CxServicePermission -Name Spooler -Identity DOMAIN\\Ops -Rights Start,Stop
        

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

Remove-CxServicePermission [-ComputerName <string>] -Name <string> -Identity <string[]> -Rights <QueryConfig> [-AccessType <Allow|Deny>] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
Name string requiredposition: 1pipeline: false
Name identifier for the target resource.
Identity string[] requiredposition: 2pipeline: true (ByValue, ByPropertyName)
Account or security identifier (SID) to apply.
Rights ServiceRights requiredposition: 3pipeline: falsevalues: 15
Access rights or permission mask to apply. Possible values: QueryConfig, ChangeConfig, QueryStatus, EnumerateDependents, Start, Stop, PauseContinue, Interrogate, UserDefinedControl, Delete, ReadControl, WriteDac, WriteOwner, Synchronize, AllAccess
Possible values: QueryConfig, ChangeConfig, QueryStatus, EnumerateDependents, Start, Stop, PauseContinue, Interrogate, UserDefinedControl, Delete, ReadControl, WriteDac, WriteOwner, Synchronize, AllAccess
AccessType AclAccessType optionalposition: 4pipeline: falsevalues: 2
Specifies whether access is Allowed or Denied. Possible values: Allow, Deny
Possible values: Allow, Deny

Outputs

System.Boolean