If you’ve worked with any version of Windows for any amount of time, you’re probably used to the GUI utilities that Windows uses for network administration. While GUI utilities are usually easy to use, they sometimes aren’t the best solution. If you want to manipulate user rights on either a local or a remote machine from the command line, the NTRIGHTS utility is for you. You can easily incorporate NTRIGHTS utilities into batch files that require user rights modifications.
In this article, I’ll show you the NTRIGHTS utility in detail, including the command’s hidden functionality. Accessing the NTRIGHTS utility The NTRIGHTS utility is a part of the Windows 2000 Server Resource Kit, and therefore isn’t included in the default Windows installation.
If you want to do it in Powershell you can install and use their Get-Privilege and Set-Privilege cmdlets. Example from PSCX Help: $p = Get-Privilege $p. Add a comment|. Up vote 15 down vote. Mark Russinovich wrote a terrific tool called AccessChk that lets you get this information from the command line.
To install the Windows 2000 Server Resource Kit, insert the Resource Kit CD and wait for the splash screen to appear. When it does, click on the Install Resource Kit link. Doing so will launch the Windows 2000 Server Resource Kit Setup Wizard. Click Next to bypass the Welcome screen, and you’ll be prompted to accept the end user license agreement.
![Ntrights Ntrights](/uploads/1/2/3/7/123763425/879573141.png)
![Ntrights Utility Download Ntrights Utility Download](/uploads/1/2/3/7/123763425/682376682.jpg)
After doing so, click Next and the wizard will ask you for your name and the name of your organization. Enter this information, click Next, and the following screen will ask if you want to perform a typical or a custom installation. For the purposes of this article, a typical installation is fine, so select the Typical radio button and click Next twice to begin the file copy process. When the file copy process completes, click Finish to close the wizard. If you’ve chosen the typical installation, then the NTRIGHTS utility will be located in the%SYSTEMROOT% Program Files Resource Kit folder. The basic syntax The key to successfully using the NTRIGHTS utility is to understand the command’s basic syntax.
After you understand the basic syntax, the more advanced functions should make sense. To run NTRIGHTS, open a command prompt on your server.
Type NTRIGHTS /? At the command line and press Enter. When you do, you’ll see the screen shown in Figure A.