Gets the permissions for a service.
Get-ServicePermission [-Name] <String> [[-Identity] <String>] [<CommonParameters>]
Uses the Win32 advapi32 API to query the permissions for a service. Returns Carbon.ServiceAccessRule
objects for each. The two relavant properties on this object are
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | The name of the service whose permissions to return. |
true | false | |
Identity | String | The specific identity whose permissions to get. |
false | false |
Carbon.Security.ServiceAccessRule.
Get-ServicePermission -Name 'Hyperdrive'
Gets the access rules for the Hyperdrive
service.
Get-ServicePermission -Name 'Hyperdrive' -Identity FALCON\HSolo
Gets just Han's permissions to control the Hyperdrive
service.