How to view user privileges using windows cmd?

AJINKYA picture AJINKYA · Jul 23, 2012 · Viewed 176.9k times · Source

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.

Answer

rfb picture rfb · Aug 23, 2013

You can use the following commands:

whoami /priv
whoami /all

For more information, check whoami @ technet.