Last active
March 4, 2018 16:09
-
-
Save praveenc/231a9c9be9a1b483157de1dce1f22f52 to your computer and use it in GitHub Desktop.
dofsec elevate app vm provision script
This file contains hidden or 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
| # Provisioning script for dofsec elevate app VM | |
| # Add IIS windows feature with WeBDev Tools | |
| Add-WindowsFeature "Web-Server","Web-Mgmt-Tools","Web-App-Dev" | |
| # Create drop folders for elevate app | |
| if(-not (Test-Path "c:\dofsec")) | |
| { | |
| mkdir "c:\dofsec" | Out-Null | |
| } | |
| # Set timezone to Eastern Standard Time | |
| Invoke-Expression "& c:\windows\system32\tzutil.exe /s ""Eastern Standard Time""" | |
| # Create Self-Signed Certificate for IIS | |
| New-SelfSignedCertificate -Dnsname elevate -CertStoreLocation Cert:\LocalMachine\My | |
| # Install chocolatey | |
| # Don't forget to ensure ExecutionPolicy is set to bypass | |
| Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
| # refresh env | |
| refreshenv | |
| # Install latest powershell, dotnet4.6.2 and other utilities | |
| #choco install 7zip -y | |
| choco install sublimetext3 -y | |
| #choco install baretail -y | |
| choco install firefox -y | |
| choco install nodejs-lts -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment