Skip to content

Instantly share code, notes, and snippets.

@landys
Created December 4, 2014 03:37
Show Gist options
  • Save landys/b1c55e9651e97ebb28a4 to your computer and use it in GitHub Desktop.
Save landys/b1c55e9651e97ebb28a4 to your computer and use it in GitHub Desktop.
Add account to administrator group.
@echo off
echo This script is to add a domain account in Admin group on the local machine.
pause
set /p var=Please input the target domain account:
net localgroup administrators %var% /add
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment