-
-
Save xjoker/80438797caa3b10be4c6489adb6c8f3d to your computer and use it in GitHub Desktop.
Auto Patch Intel Meltdown Patch For Windows Server
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
@ECHO OFF | |
pushd %~dp0 | |
CLS | |
COLOR 0E | |
:MAINMENU | |
CLS | |
ECHO. | |
ECHO --------------------------------------------------------------- | |
ECHO ---------------- Intel Meltdown Windows Patch ----------------- | |
ECHO ---------------- [ Must Run As Administrator ] ---------------- | |
ECHO --------------------------------------------------------------- | |
ECHO. [1] - Windows Server 2008 R2 | |
ECHO. [2] - Windows Server 2012 R2 | |
ECHO. [3] - Windows Server 2016 | |
ECHO --------------------------------------------------------------- | |
ECHO. | |
SET INPUT= | |
SET /P INPUT=Select A Number : | |
IF /I '%INPUT%'=='1' GOTO S2008R2 | |
IF /I '%INPUT%'=='2' GOTO S2012R2 | |
IF /I '%INPUT%'=='3' GOTO S2016 | |
ECHO Invalid Selection! | |
ECHO. | |
ECHO Press Any Key To Go Back... | |
PAUSE >NUL | |
CLS | |
GOTO MAINMENU | |
:S2008R2 | |
ECHO. | |
cd %~dp0 | |
wget https://download.windowsupdate.com/d/msdownload/update/software/secu/2018/01/windows6.1-kb4056897-x64_2af35062f69ce80c4cd6eef030eda31ca5c109ed.msu --no-check-certificate -O Meltdown.msu | |
wget https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/Win7AndW2K8R2-KB3134760-x64.msu --no-check-certificate -O Powershell.msu | |
ECHO. | |
GOTO InstallPatch | |
:S2012R2 | |
ECHO. | |
cd %~dp0 | |
wget https://download.windowsupdate.com/c/msdownload/update/software/secu/2018/01/windows8.1-kb4056898-v2-x64_754f420c1d505f4666437d06ac97175109631bf2.msu --no-check-certificate -O Meltdown.msu | |
wget https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/Win8.1AndW2K12R2-KB3134758-x64.msu --no-check-certificate -O Powershell.msu | |
ECHO. | |
GOTO InstallPatch | |
:S2016 | |
ECHO. | |
cd %~dp0 | |
wget https://download.windowsupdate.com/d/msdownload/update/software/secu/2018/01/windows10.0-kb4056890-x64_delta_dedf5675b6667189ac8445cdf062abe866c68435.msu --no-check-certificate -O Meltdown.msu | |
ECHO Start Install Meltdown Patch... | |
wusa %~dp0\Meltdown.msu /quiet /norestart | |
ECHO. | |
GOTO REGPatch | |
:InstallPatch | |
ECHO. | |
ECHO Start Install Meltdown Patch... | |
wusa %~dp0\Meltdown.msu /quiet /norestart | |
ECHO Start Upgrade Powershell 5.0... | |
wusa %~dp0\Powershell.msu /quiet /norestart | |
ECHO. | |
GOTO REGPatch | |
:REGPatch | |
ECHO. | |
ECHO Start Patch Regedit... | |
reg add "HKLM\SOFTWARE\Microsoft\Windows\QualityCompat" /v "cadca5fe-87d3-4b96-b7fb-a231484277cc" /t REG_DWORD /d 00000000 | |
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /t REG_DWORD /d 00000000 | |
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /t REG_DWORD /d 00000003 | |
ECHO. | |
GOTO END | |
:END | |
ECHO Need to reboot SYSTEM! | |
ECHO Do You Want To Quit(not reboot)? Y/N | |
Set /p Quit= | |
IF "%Quit%"=="Y" Exit | |
IF "%Quit%"=="y" Exit | |
IF "%Quit%"=="N" GOTO MAINMENU | |
IF "%Quit%"=="n" GOTO MAINMENU | |
CLS | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment