Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is an equivalent for ntrights.exe on Windows 7?

I need it to be able to be run from the command line.

share|improve this question

3 Answers 3

up vote 10 down vote accepted
+25

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).

share|improve this answer

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.

share|improve this answer

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.

share|improve this answer
    
How can I get the identity to pass it, if I want to set a privilege for a different user? –  Peter Mounce Aug 7 '13 at 12:03
    
@PeterMounce Both cmdlets have an -Identity parameter, so you should be a able to specify another user. But I haven't tried that myself. –  oleschri Aug 8 '13 at 9:44
    
I did try that, and it didn't accept a string containing the username as a valid identity; I assume therefore it wants an object. –  Peter Mounce Aug 8 '13 at 15:51
    
@PeterMounce It seems to expect a System.Security.Principal.WindowsIdentity. Couldn't get it to run with another user either. –  oleschri Aug 9 '13 at 8:59
    
yes; how do I get hold of one of those? –  Peter Mounce Aug 9 '13 at 10:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.