< Back

Get-AssignedUserRight

Wed Jan 15, 2020 2:30 am

NAME Get-AssignedUserRight



SYNOPSIS

Gets all user rights granted to a principal.





SYNTAX

Get-AssignedUserRight [[-AccountName] <String[]>] [<CommonParameters>]





DESCRIPTION

Get a list of all the user rights granted to one or more principals. Does not expand group membership.





PARAMETERS

-AccountName <String[]>

Find rights for the specified account names. By default AccountName is the current user.



Required? false

Position? 2

Default value $env:USERNAME

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.AssignedUserRight





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



PS C:\\>Get-AssignedUserRight



Returns a list of all defined for the current user.









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



PS C:\\>Get-AssignedUserRight Administrator



Get the list of rights assigned to the administrator account.











RELATED LINKS