Return to site

Ntrights Utility Download

broken image


NTRIGHTS.exe (2003 Resource Kit). This utility does work under all recent versions of Windows, although (like all Resource Kit tools) it is unsupported. Ntrights – Google Search. Download Windows Server 2003 Resource Kit Tools from Official Microsoft Download Center. How to set logon user rights by using the NTRights utility. Log on as a batch job / Log on as a batch job. Deny logon as a batch job / Deny logon as a batch job. Granting the Log On as Batch Job Right.

Ntrights Utility Download Software

Description

In this article, I am going to explain about how to set or grant user Logon As A Service permission/privilege using Local Security Policy, VBScript, Powershell, C# and Command Line tool.

Summary

Set Logon As A Service right to user using Local Security Policy

Follow the below steps to set Log on As Service right via Local Security Policy

1. Open the Run window by pressing ‘Windows’ + ‘R’ keys.
2. Type the command secpol.msc in the text box and click OK.

3. Now the Local Security Policy window will be open, in that window navigate to the node User Rights Assignment (Security Settings -> Local Polices ->User Rights Assignment). In right side pane, search and select the policy Log on as a service.

4. Double-click on the policy Log on as a service, in the opened windows click the button Add User or Group, select the user which you want to set logon as a service right and click OK, and click Apply button to finish.

Set or Grant User Logon As A Service right via Powershell

We can set the Logon As A Service right to user in Powershell by importing the third party DLL ( Carbon ). Before you run the below script you need to the download latest Carbon files from here Download Carbon DLL.

Steps to follow to set Logon As A Service right via Powershell :

1. Download latest Carbon files from here Download Carbon DLL.
2. If you have downloaded the files, extract the zip file and you could see the Carbon DLL inside bin folder (In my case: C:UsersAdministratorDownloadsCarbonbinCarbon.dll).
3. Copy the below Powershell script commands and place it notepad or textfile.
4. Now you can replace your Carbon DLL path in following script for the variable $CarbonDllPath
5. You can also replace the user identity that you are going to set logon as service right in the variable $Identity
6. Now run as Powershell window with Admin Privilege (Run as Administrator)
7. Copy the edited Powershell script and Run it in Powershell to set logon as a service right.

Powershell output
:

Other web site links for Carbon DLL:
https://bitbucket.org/splatteredbits/carbon/downloads
http://pshdo.com/
http://get-carbon.org/help/Grant-Privilege.html

Set or Grant User Logon As A Service right/permission to user using C#

You can use the function GrantUserLogOnAsAService to set Logon as a Service right to user using C# code. This function uses the class LsaWrapper.

LsaWrapper class file

Ntrights Utility Downloads

Ntrights.exe
Ntrights.exe

Set Logon As A Service right to user via Command Line

You can use the NTRights.exe utility to grant or deny user rights to users and groups from a command line or a batch file. The NTRights.exe utility is included in the Windows NT Server 4.0 Resource Kit Supplement 3.

Refer: http://support.microsoft.com/kb/266280

Set Logon As A Service right

Ntrights Utility Download

Revoke Logon As A Service right

Set or Grant Logon As Service right/privilege to user via VBScript

1. Copy the below example VBScript code and paste it in notepad or a VBScript editor.
2. Change the value for strUserName if you want to give your own name otherwise simply leave it.
3. Save the file with a .vbs extension, for example: SetLogonAsAServiceRight.vbs
4. Double-click the VBScript file (or Run this file from command window) to Set Logon As Service right/permission to user.

Thanks,
Morgan
Software Developer
———————

Ntrights Utility Download Windows 10

Related Reads





broken image