Created
February 4, 2016 20:22
-
-
Save sneal/cf9dd9e19a514572ebcb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Windows 7 SP1 | |
if not exist "C:\Windows\Temp\windows6.1-KB976932-X64.exe" ( | |
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/windows6.1-KB976932-X64.exe', 'C:\Windows\Temp\windows6.1-KB976932-X64.exe')" <NUL | |
) | |
:: Windows 7 SP1 require KB3102810 hotfix | |
:: Installing and searching for updates is slow and high CPU usage occurs in Windows 7. | |
:: https://support.microsoft.com/en-us/kb/3102810 | |
if not exist "C:\Windows\Temp\Windows6.1-KB3102810-x64.msu" ( | |
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/F/A/A/FAABD5C2-4600-45F8-96F1-B25B137E3C87/Windows6.1-KB3102810-x64.msu', 'C:\Windows\Temp\Windows6.1-KB3102810-x64.msu')" <NUL | |
) | |
@echo on | |
C:\Windows\Temp\windows6.1-KB976932-X64.exe /quiet /nodialog /norestart | |
start /wait wusa "C:\Windows\Temp\Windows6.1-KB3102810-x64.msu" /quiet | |
powershell -Command "Start-Sleep 1" <NUL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment