Last active
October 5, 2017 12:53
-
-
Save allenyllee/2d70a61e95b853722ed38af54ee099d4 to your computer and use it in GitHub Desktop.
windows_setup.bat
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
:: | |
:: install choco | |
:: | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
:: | |
:: install wget | |
:: | |
choco install -y wget | |
:: | |
:: install Sudoer | |
:: | |
set FILE_VER=0.4.2-r208 | |
set FILE_NAME=sudowin | |
del %FILE_NAME%-bin-%FILE_VER%.msi | |
wget https://downloads.sourceforge.net/project/%FILE_NAME%/%FILE_NAME%/%FILE_NAME%-%FILE_VER%/%FILE_NAME%-bin-%FILE_VER%.msi | |
msiexec /i %FILE_NAME%-bin-%FILE_VER%.msi /quiet | |
:: | |
:: add current user into Sudoers group | |
:: | |
:: Get current logged in user name command line (CMD) | |
:: https://www.windows-commandline.com/current-logged-in-user-name-command/ | |
:: | |
:: Add user to group from command line (CMD) | |
:: https://www.windows-commandline.com/add-user-to-group-from-command-line/ | |
:: | |
net localgroup Sudoers %username% /add | |
:: | |
:: install node.js & npm | |
:: | |
sudo choco install -y node.js | |
:: | |
:: install plantuml | |
:: | |
sudo choco install -y plantuml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment