Get-ServicePermission

Gets the permissions for a service.

Syntax

Get-ServicePermission [-Name] <String> [[-Identity] <String>] [<CommonParameters>]

Description

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

Related Commands

Parameters

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

Return Values

Carbon.Security.ServiceAccessRule.

EXAMPLE 1

Get-ServicePermission -Name 'Hyperdrive'

Gets the access rules for the Hyperdrive service.

EXAMPLE 2

Get-ServicePermission -Name 'Hyperdrive' -Identity FALCON\HSolo

Gets just Han's permissions to control the Hyperdrive service.