Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpluimers/0a4d708575aa5abd017c to your computer and use it in GitHub Desktop.
Save jpluimers/0a4d708575aa5abd017c to your computer and use it in GitHub Desktop.
revoke-Logon-as-Batch-Job-security-policy.bat requires ntrights
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