This is a collection of Windows PowerShell Desired State Configuration scripts I'm using on my Windows development workstation.
Make sure you're running Windows 10 version 1809 or newer. These have not been tested on other systems.
Start WinRM service:
winrm quickconfig
Set PSGallery as a trusted source for modules:
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install NuGet provider:
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install PowerShellGet and PackageManagement modules:
Install-Module –Name PowerShellGet -Force -MinimumVersion 2.0.3
Install-Module –Name PackageManagement -Force -MinimumVersion 1.2.4
Install cChoco module:
Install-Module -Name cChoco -MinimumVersion 2.4.0.0
Start PowerShell with Run as administrator option and run the following command:
.\Base.ps1
Configures following PowerShell package management sources:
Install or upgrade the following software:
Start PowerShell with Run as administrator option and run the following command:
.\Workstation.ps1
Install or upgrade the following software:
- Google Chrome browser
- Firefox browser
- OpenVPN client
- GNU Privacy Guard for Windows
- 7zip file archiver
- Spotify
- VLC media player
Start PowerShell with Run as administrator option and run the following command:
.\Development.ps1
Installs following PowerShell modules:
Enable following features:
Install or upgrade the following software:
- Meld visual diff and merge tool
- Cmder console emulator
- Postman for Windows
- Microsoft Visual C++ 2010 SP1 Redistributable Package
- Visual Studio Code
- BIND Tools
- jq 1.5
- CMake tools 3.13.3
- LLVM compiler 7.0.1
- GNU Wget
- Git for Windows
- GitHub Desktop
- GitKraken Git Client
Start PowerShell with Run as administrator option and run the following command:
.\Golang.ps1
Install or upgrade the following software:
- Go Programming Language 1.11.5
Start PowerShell with Run as administrator option and run the following command:
.\Cloud.ps1
Install or upgrade the following software:
- Terraform 0.11.11
Start PowerShell with Run as administrator option and run the following command:
.\Python.ps1
Install or upgrade the following software:
- Python 3.7.2
Start PowerShell with Run as administrator option and run the following command:
.\PHP.ps1
Install or upgrade the following software:
Start PowerShell with Run as administrator option and run the following command:
.\Node.ps1
Install or upgrade the following software:
- Node.js LTS 10.15.1
Start PowerShell with Run as administrator option and run the following command:
.\Ruby.ps1
Install or upgrade the following software:
- Ruby 2.6.1.1
Start PowerShell with Run as administrator option and run the following command:
.\Elixir.ps1
Install or upgrade the following software:
Docker for Windows requires Hyper-V so you need a Windows 10 Pro license.
Start PowerShell with Run as administrator option and run the following command:
.\Docker.ps1
- Enable Hyper-V feature
- Install Docker for Windows
Start PowerShell with Run as administrator option and run the following command:
.\Kubernetes.ps1
- PackageManagement
- PSDesiredStateConfiguration
- Built-In Windows PowerShell Desired State Configuration Resources
See Troubleshooting document for common issues during configuration.