API Reference
Command
Add-CxServicePermission
Adds an ACE to a service DACL.
Examples
Example 1
Add-CxServicePermission -Name EventLog -Identity DOMAIN\\Ops -Rights QueryStatus
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-CxServicePermission [-ComputerName <string>] -Name <string> -Identity <string[]> -Rights <QueryConfig> [-AccessType <Allow|Deny>] [<CommonParameters>]#Parameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- Name string
- Name identifier for the target resource.
- Identity string[]
- Account or security identifier (SID) to apply.
- Rights ServiceRights
- 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
- Specifies whether access is Allowed or Denied. Possible values: Allow, Deny
- Possible values:
Allow,Deny
Outputs
System.Boolean