< Back

Get-UserRight

Wed Jan 15, 2020 2:31 am

NAME Get-UserRight



SYNOPSIS

Gets all accounts that are assigned a specified user right.





SYNTAX

Get-UserRight [[-Name] <String[]>] [<CommonParameters>]





DESCRIPTION

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.





PARAMETERS

-Name <String[]>

The user right, or rights, to query.



Required? false

Position? 2

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Indented.SecurityPolicy.UserRight





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-UserRight SeServiceLogonRight



Returns a list of all accounts that hold the "Log on as a service" right.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-UserRight SeServiceLogonRight, SeDebugPrivilege



Returns accounts with the SeServiceLogonRight and SeDebugPrivilege rights.











RELATED LINKS