if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Host "CRITICAL ERROR: Please run this PowerShell window as Administrator." -ForegroundColor Red exit } winget install Microsoft.PowerShell --silent --accept-package-agreements --accept-source-agreements 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')) Write-Host "--- Starting Technician Environment Setup ---" -ForegroundColor Cyan Write-Host "[1/5] Enabling Hyper-V and Virtualization Features..." -ForegroundColor Yellow $features = @( "Microsoft-Hyper-V", "Microsoft-Hyper-V-Management-Clients", "Microsoft-Hyper-V-All", "Microsoft-Windows-Subsystem-Linux", "VirtualMachinePlatform" ) foreach ($feature in $features) { Write-Host "Installing: $feature" dism.exe /online /enable-feature /featurename:$feature /all /norestart } wsl --update wsl --set-default-version 2 wsl --update winget install RedHat.Podman --silent --accept-package-agreements --accept-source-agreements choco install podman-desktop -y