//========================= * "BlockWindows10.bat" 파일
ECHO ON REM --- remember to invoke from ELEVATED command prompt! REM --- or start the batch with context menu "run as admin". SETLOCAL
REM --- (as of 2015-09-07): REM KB3035583 - GWX Update installs Get Windows 10 app in Windows 8.1 and Windows 7 SP1
REM KB971033 : 정품인증
REM KB3021917 - Update to Windows 7 SP1 for performance improvements REM KB3012973 - Upgrade to Windows 10 Pro
REM --- no longer blocking: REM KB2952664 - Compatibility update for upgrading Windows 7 REM KB2976978 - Compatibility update for Windows 8.1 and Windows 8 REM KB3022345 - Telemetry [Replaced by KB3068708] REM KB3068708 - Update for customer experience and diagnostic telemetry
echo ... COMPLETED (please remember to REBOOT windows, now) pause REM --- EOF
//======================== "HideWindowsUpdates.vbs" 파일 - 업데이트 숨기기
'// Inspired by Colin Bowern: http://serverfault.com/a/341318 If Wscript.Arguments.Count < 1 Then WScript.Echo "Syntax: HideWindowsUpdates.vbs [KB1] [KB2] ..." & vbCRLF & _ " - Example1: HideWindowsUpdates.vbs 3035583" & vbCRLF & _ " - Example2: HideWindowsUpdates.vbs 3035583 3012973" WScript.Quit 1 End If
Dim objArgs Set objArgs = Wscript.Arguments Dim updateSession, updateSearcher Set updateSession = CreateObject("Microsoft.Update.Session") Set updateSearcher = updateSession.CreateUpdateSearcher()
Wscript.Stdout.Write "Searching for pending updates..." Dim searchResult Set searchResult = updateSearcher.Search("IsInstalled=0")
Dim update, kbArticleId, index, index2 WScript.Echo CStr(searchResult.Updates.Count) & " found." For index = 0 To searchResult.Updates.Count - 1 Set update = searchResult.Updates.Item(index) For index2 = 0 To update.KBArticleIDs.Count - 1 kbArticleId = update.KBArticleIDs(index2)
For Each hotfixId in objArgs If kbArticleId = hotfixId Then If update.IsHidden = False Then WScript.Echo "Hiding update: " & update.Title update.IsHidden = True Else WScript.Echo "Already hiddn: " & update.Title End If End If Next