API Reference
Command
Get-CxUserRight
Returns local security policy user-right assignments for a computer.
Examples
Example 1: Lists all user-right assignments on the local machine.
PS>
Get-CxUserRight
Example 2: Checks which principals have the service logon right on a remote server.
PS>
Get-CxUserRight -ComputerName APP01 -Right SeServiceLogonRight
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Get-CxUserRight [-ComputerName <string>] [-Right <SeTrustedCredManAccessPrivilege>] [<CommonParameters>]#Parameters
- ComputerName string
- Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.
- Right UserRightsAssignment[]
- Optional user rights to return. When omitted, the cmdlet returns every defined right from the local security policy. Possible values: SeTrustedCredManAccessPrivilege, SeNetworkLogonRight, SeTcbPrivilege, SeMachineAccountPrivilege, SeIncreaseQuotaPrivilege, SeInteractiveLogonRight, SeRemoteInteractiveLogonRight, SeBackupPrivilege, SeChangeNotifyPrivilege, SeSystemtimePrivilege, SeTimeZonePrivilege, SeCreatePagefilePrivilege, SeCreateTokenPrivilege, SeCreateGlobalPrivilege, SeCreatePermanentPrivilege, SeCreateSymbolicLinkPrivilege, SeDebugPrivilege, SeDenyNetworkLogonRight, SeDenyBatchLogonRight, SeDenyServiceLogonRight, SeDenyInteractiveLogonRight, SeDenyRemoteInteractiveLogonRight, SeEnableDelegationPrivilege, SeRemoteShutdownPrivilege, SeAuditPrivilege, SeImpersonatePrivilege, SeIncreaseWorkingSetPrivilege, SeIncreaseBasePriorityPrivilege, SeLoadDriverPrivilege, SeLockMemoryPrivilege, SeBatchLogonRight, SeServiceLogonRight, SeSecurityPrivilege, SeRelabelPrivilege, SeSystemEnvironmentPrivilege, SeManageVolumePrivilege, SeProfileSingleProcessPrivilege, SeSystemProfilePrivilege, SeUndockPrivilege, SeAssignPrimaryTokenPrivilege, SeRestorePrivilege, SeShutdownPrivilege, SeSyncAgentPrivilege, SeTakeOwnershipPrivilege, SeDelegateSessionUserImpersonatePrivilege
- Possible values:
SeTrustedCredManAccessPrivilege,SeNetworkLogonRight,SeTcbPrivilege,SeMachineAccountPrivilege,SeIncreaseQuotaPrivilege,SeInteractiveLogonRight,SeRemoteInteractiveLogonRight,SeBackupPrivilege,SeChangeNotifyPrivilege,SeSystemtimePrivilege,SeTimeZonePrivilege,SeCreatePagefilePrivilege,SeCreateTokenPrivilege,SeCreateGlobalPrivilege,SeCreatePermanentPrivilege,SeCreateSymbolicLinkPrivilege,SeDebugPrivilege,SeDenyNetworkLogonRight,SeDenyBatchLogonRight,SeDenyServiceLogonRight,SeDenyInteractiveLogonRight,SeDenyRemoteInteractiveLogonRight,SeEnableDelegationPrivilege,SeRemoteShutdownPrivilege,SeAuditPrivilege,SeImpersonatePrivilege,SeIncreaseWorkingSetPrivilege,SeIncreaseBasePriorityPrivilege,SeLoadDriverPrivilege,SeLockMemoryPrivilege,SeBatchLogonRight,SeServiceLogonRight,SeSecurityPrivilege,SeRelabelPrivilege,SeSystemEnvironmentPrivilege,SeManageVolumePrivilege,SeProfileSingleProcessPrivilege,SeSystemProfilePrivilege,SeUndockPrivilege,SeAssignPrimaryTokenPrivilege,SeRestorePrivilege,SeShutdownPrivilege,SeSyncAgentPrivilege,SeTakeOwnershipPrivilege,SeDelegateSessionUserImpersonatePrivilege
Outputs
LocalSecurityEditor.UserRightState