What is an equivalent for
ntrights.exe on Windows 7?
I need it to be able to be run from the command line.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
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).
If you want to do it in Powershell you can install Powershell Community Extensions (PSCX) and use their
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.