external help file | Module Name | online version | schema |
---|---|---|---|
Indented.SecurityPolicy-help.xml |
Indented.SecurityPolicy |
2.0.0 |
Gets all accounts that are assigned a specified user right.
Get-UserRight [[-Name] <String[]>] [<CommonParameters>]
Gets a list of all accounts that hold a specified user right.
Group membership is not evaluated, the values returned are explicitly listed under the specified user rights.
Get-UserRight SeServiceLogonRight
Returns a list of all accounts that hold the "Log on as a service" right.
Get-UserRight SeServiceLogonRight, SeDebugPrivilege
Returns accounts with the SeServiceLogonRight and SeDebugPrivilege rights.
The user right, or rights, to query.
Type: String[]
Parameter Sets: (All)
Aliases: UserRight
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.