Skip to content

Instantly share code, notes, and snippets.

@praveenc
Last active December 2, 2017 22:28
Show Gist options
  • Save praveenc/a8f27c55a05dc7f1d84a7494c7fdcafb to your computer and use it in GitHub Desktop.
Save praveenc/a8f27c55a05dc7f1d84a7494c7fdcafb to your computer and use it in GitHub Desktop.
Add-WindowsFeature "Net-Framework-Core"
Add-WindowsFeature "Web-Server","Web-Mgmt-Tools","Web-App-Dev","Web-Http-Redirect","Web-Asp-Net45"
# Create drop folders for builds
if(-not (Test-Path "c:\build_drop"))
{
mkdir "c:\build_drop" | Out-Null
}
# Create logs folder
mkdir "${env:APPDATA}\dormakaba\farepointe\logs" | 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 fccs -CertStoreLocation Cert:\LocalMachine\My
# Install chocolatey
# Don't forget to ensure ExecutionPolicy above
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install latest powershell, dotnet4.6.2 and other utilities
choco install erlang -y
choco install vcredist2015 -y
choco install 7zip -y
choco install VisualStudioCode -y
choco install vscode-powershell -y
choco install vscode-docker -y
choco install vscode-azurerm-tools -y
choco install baretail -y
choco install googlechrome -y
choco install urlrewrite -y
choco install rabbitmq -y
choco install dotnet4.6.2 -y
choco install powershell -y
Start-Sleep -Seconds 10
Get-Service RabbitMQ | Start-Service -ErrorAction SilentlyContinue
# Enable PSRemoting
Enable-PSRemoting -Force
# Disable ScheduledDefrag Automatic Scheduled Task on Win 2012R2
Get-ScheduledTask -TaskName ScheduledDefrag | Disable-ScheduledTask
# Disable Regular Maintenance Automatic Scheduled Task on Win 2012R2
Get-ScheduledTask -TaskName "Regular Maintenance" | Disable-ScheduledTask
# Restart Computer
Start-Sleep -Seconds 10
Restart-Computer -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment