Skip to content

Instantly share code, notes, and snippets.

@juanonsoftware
Last active August 2, 2023 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanonsoftware/93d60f1244d5463ada77fba865d41c92 to your computer and use it in GitHub Desktop.
Save juanonsoftware/93d60f1244d5463ada77fba865d41c92 to your computer and use it in GitHub Desktop.
Scripts to install packages for a multi roles server (Webserver with IIS & .NET and Database server with SQL Server 2014)
# 1. Setup IIS
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole, IIS-WebServer
Install-WindowsFeature -Name "Web-CertProvider"
Install-WindowsFeature -Name Web-Asp-Net45
# 2. Setup Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# 3. Setup Net 6 & IIS extensions
# 3.1. NET6
choco install dotnet-6.0-windowshosting
# 3.2. IIS URL Rewrite module
choco install urlrewrite
# 4. Setup SQL Server
choco install mssqlserver2014express
choco install sql-server-management-studio
# 5. Setup supporting programs
# 5.1 GIT
choco install git
# 5.2 Open SSH
choco install openssh
# 5.3 7Zip
choco install 7zip
# 5.4 Notepad++
choco install notepadplusplus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment