Is there a way to check if a user has specific rights?

Posted by Vadim on Server Fault See other posts from Server Fault or by Vadim
Published on 2010-03-22T18:06:43Z Indexed on 2010/03/22 18:11 UTC
Read the original article Hit count: 423

Filed under:
|
|

In my application I'm using ntrights.exe, that is part of Windows Resource Kit, to grant and revoke a specific user right.

For example to grant a user "Log on as a server" right, I execute using shell object following command:

ntrights -u User +r SeServiceLogonRight

However ntrights doesn't allow you to check if a user has a specific right.

Can you tell me how I can check if a user has a specific right?

© Server Fault or respective owner

Related posts about security

Related posts about rights