# 04-NetworkAndWinRM.ps1 — Set network profiles to Private and enable WinRM (baseline) # --- Set all network profiles to Private --- Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private Write-Host "All network profiles set to Private." # --- Enable and configure WinRM --- Enable-PSRemoting -Force -SkipNetworkProfileCheck Write-Host "WinRM enabled."