Adding proxy from command:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /freg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 10.0.0.1:3128 /freg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v proxyoverride /t reg_sz /d "*.name.com;10.*" /freg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MigrateProxy /t REG_DWORD /d 1 /f# start IE and close it.netsh winhttp import proxy source =ie |
Install Powershell:
mkdir c:\tempWrite-host "Downloading Powershell 5.1" -ForegroundColor Cyan(New-Object System.Net.WebClient).DownloadFile('https://go.microsoft.com/fwlink/?linkid=839516', "c:\\temp\\Win8.1AndW2K12R2-KB3191564-x64.msu")Write-host "Downloaded Powershell 5.1" -ForegroundColor CyanWrite-host "Installing PowerShell 5.1" -ForegroundColor Cyanwrite-host "Extracting file" -ForegroundColor Cyanwinrs -r:localhost c:\windows\system32\wusa.exe c:\temp\Win8.1AndW2K12R2-KB3191564-x64.msu /extract:c:\tempwrite-host "Installing file" -ForegroundColor Cyanwinrs -r:localhost dism /online /add-package /PackagePath:c:\temp\WindowsBlue-KB3191564-x64.cab /norestartwrite-host "Finished Installing file" -ForegroundColor CyanModules installation: |