Created
May 21, 2015 11:30
-
-
Save jpluimers/0a4d708575aa5abd017c to your computer and use it in GitHub Desktop.
revoke-Logon-as-Batch-Job-security-policy.bat requires ntrights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [%*]==[] goto :help | |
ntrights -r SeBatchLogonRight -u %* | |
goto :eof | |
:help | |
echo Revoke the Logon as Batch Job policy to a user | |
echo See http://www.morgantechspace.com/2014/03/Set-Logon-as-batch-job-rights-to-User-by-Powershell-CSharp-CMD.html | |
echo Syntax %~0 [domain\]username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment