IaC setup to install necessary packages and configure my Windows.
Install chocolatey
package manager for Windows.
- Goto https://chocolatey.org/install
- Select
Individual
- Check policy in Powershell(Run as administrator)
Run
Get-ExecutionPolicy
. If it returnsRestricted
, then runSet-ExecutionPolicy AllSigned
orSet-ExecutionPolicy Bypass -Scope
Process. - Install
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'))
- Download this Github repo zip file or download packages.config
- Once
chocolatey
is installed, open powershell(with run as administrator)# Download and extract Github repo PS C:\Users\veere\Downloads> cd prepare-my-windows-main PS C:\Users\veere\Downloads\prepare-my-windows-main> choco install packages.config -y
- Use script builder https://docs.chocolatey.org/en-us/community-repository/script-builde
- Or check package exists in https://community.chocolatey.org/packages and add in packages.config