Created
December 4, 2014 03:37
-
-
Save landys/b1c55e9651e97ebb28a4 to your computer and use it in GitHub Desktop.
Add account to administrator group.
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
@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