Windows 7 equivalent for ntrights.exe
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------
Track title: CC C Schuberts Piano Sonata No 13 D
--
Chapters
00:00 Question
00:22 Accepted answer (Score 20)
00:52 Answer 2 (Score 12)
01:30 Answer 3 (Score 3)
01:55 Answer 4 (Score 0)
02:20 Thank you
--
Full question
https://superuser.com/questions/309360/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows7 #commandline #security
#avk47
ACCEPTED ANSWER
Score 20
You can still use ntrights from the Windows Server 2003 Resource Kit Tools. Although not supported naturally, many of the tools performs flawlessly (including ntrights.exe).
Proof: Microsoft TechNet (scroll down until you find the Tool table, including NTRights.exe as one of the tools that can be used).
ANSWER 2
Score 12
If you want to do it in Powershell you can install Powershell Community Extensions (PSCX) and use their Get-Privilege
and Set-Privilege
cmdlets.
Example from PSCX Help:
$p = Get-Privilege
$p.Enable('SeTimeZonePrivilege')
Set-Privilege $p
Get-Privilege | ft Name, Status -a
Name Status
---- ------
SeShutdownPrivilege Disabled
SeChangeNotifyPrivilege EnabledByDefault, Enabled
SeUndockPrivilege Disabled
SeIncreaseWorkingSetPrivilege Disabled
SeTimeZonePrivilege Enabled
By default it acts on the current user, but you can pass it a specific windows identity, of course.
ANSWER 3
Score 3
Although its not suitable for scripting, The user management plugin for the orthodox file manager Far Manager will let you do this from the console. If you are running the 64 bit version of farmanager, you will need the 64 bit version of the plugin from the evil programmers google code project.
ANSWER 4
Score 0
Almost ten years laterXD To show privileges "WhoAmI.exe /Priv" might do it, but "SecEdit.exe" could be worth a look at as well.
Hint: If the command "FSUtil" exits with errorlevel 1, you do NOT have admin privileges.