I am trying to view the user privileges using the command prompt in Windows. User account & User privileges such as:
SeBatchLogonRight
SeDenyBatchLogonRight
SeInteractiveLogonRight
SeDenyInteractiveLogonRight
SeServiceLogonRight
SeDenyServiceLogonRight
SeNetworkLogonRight
SeDenyNetworkLogonRight
I tried using ntrights
but it's not working. I can't use any tool as I am trying to create an automated script for an OS audit.
You can use the following commands:
whoami /priv
whoami /all
For more information, check whoami @ technet.