https://github.com/cloudbase/setuseraccountrights
Simple CLI for managing Windows user account rights, including Nano Server support
https://github.com/cloudbase/setuseraccountrights
Last synced: 3 months ago
JSON representation
Simple CLI for managing Windows user account rights, including Nano Server support
- Host: GitHub
- URL: https://github.com/cloudbase/setuseraccountrights
- Owner: cloudbase
- License: apache-2.0
- Created: 2015-10-18T14:22:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-18T17:39:37.000Z (over 10 years ago)
- Last Synced: 2025-06-09T10:11:38.593Z (8 months ago)
- Language: C++
- Size: 160 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SetUserAccountRights
A simple command line tool to list, grant and revoke
Windows user account rights and privileges.
This is particularly useful when assigning user accounts to
services, where the _SeServiceLogonRight_ right is needed.
It works on any supported version of Windows and Windows Server,
including Nano Server.
## Usage
Display usage information:
SetUserAccountRights -h
List user rights or privileges assigned to a given local or domain account:
SetUserAccountRights -l Administrator
Grant a given user account right or privilege to a user:
SetUserAccountRights -g Administrator -v SeServiceLogonRight
Revoke a given user account right or privilege from a user:
SetUserAccountRights -r Administrator -v SeServiceLogonRight
The list of valid user rights is available here:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb545671(v=vs.85).aspx
The list of valid privileges is available here:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx