Grants a user/group permission to control a service.
Grant-ServiceControlPermission [-ServiceName] <String> [-Identity] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Users/groups that aren't administrators need to granted permission to control (e.g. start, stop) a service. This function uses Microsoft's subinacl.exe
program to grant those permissions.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
ServiceName | String | The name of the service. | true | false | |
Identity | String | The user/group name being given access. | true | false | |
WhatIf | SwitchParameter | false | false | ||
Confirm | SwitchParameter | false | false | ||
CommonParameters | This cmdlet supports common parameters. For more information type Get-Help about_CommonParameters . |
Grant-ServiceControlPermission -ServiceName CCService -Identity INITRODE\Builders
Grants the INITRODE\Builders group permission to control the CruiseControl.NET service.