Tests if an identity has a given privilege.
Test-Privilege [-Identity] <String> [-Privilege] <String> [<CommonParameters>]
Returns true if an identity has a privilege. False otherwise.
| Name | Type | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|---|
| Identity | String | The identity whose privileges to check. |
true | false | |
| Privilege | String | The privilege to check. |
true | false |
Test-Privilege -Identity Forrester -Privilege SeServiceLogonRight
Tests if Forrester has the SeServiceLogonRight privilege.