Skip to content

Instantly share code, notes, and snippets.

@praveenc
Created March 4, 2018 18:53
Show Gist options
  • Save praveenc/05447237a73734b49ea7dc219b01b4a0 to your computer and use it in GitHub Desktop.
Save praveenc/05447237a73734b49ea7dc219b01b4a0 to your computer and use it in GitHub Desktop.
# Provisioning script for dofsec elevate app VM
# 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"""
# 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 git.install -y
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