質問: windows 10更新通知osdを無効にする windows 10では時々、osdで画面を取得し続け、[設定]の[更新]メニューに移動するボタンを使用して更新について通知します。特にフルスクリーンでアプリを使用しているときはいつでも、非常に迷惑です。このスクリーングラビングosd通知を無効にしたいと思います。メッセージセンターで表示できるように、代わりに小さなポップアップバルーン通知で通知するようにできます。レジストリの微調整など何でもかまいません。それでも、更新通知を完全に無効にしてもかまいません。私は現在、更新を通知するためだけに持っていますが、選択したときにそれらをダウンロードしてインストールしません。
回答: windows_update_notification_only_toggle.bat 通知のみのサブセットで、迷惑な通知と再起動タスクのみをブロックし、更新機能を有効にして機能させます。変更を元に戻し、ウィンドウの更新通知を再開するには、もう一度スクリプトを実行します。 windows_update_notification_only_toggle.bat goto="init" /* %~nx0 :: batch designed for windows 10 - compatible with windows 7 :: v7 final: disable update notification-only with working windows update, store and defender protection updates ::---------------------------------------------------------------------------------------------------------------------------------- :about ::---------------------------------------------------------------------------------------------------------------------------------- call :check_status if "%status%"=="disabled" ( color 0c ) else color 0b echo. echo --------------------------------------------------------------------- echo : windows update notification-only toggle v7.0 : echo :---------------------------------------------------------------------: echo : just run this script again to enable or disable : echo : : echo : update notification currently %status% : echo : : echo : press alt+f4 to cancel always run latest version : echo --------------------------------------------------------------------- echo a subset of windows_update_toggle.bat https://pastebin.com/gnslewje echo. exit/b ::---------------------------------------------------------------------------------------------------------------------------------- :main [ batch main function ] ::---------------------------------------------------------------------------------------------------------------------------------- set "exe=" & title windows update notification toggle & color 07 & call :about 0b & timeout /t 10 :: notification blocking set "exe=%exe% musnotification musnotifyicon" || tasks\microsoft\windows\updateorchestrator essential! set "exe=%exe% updatenotificationmgr unpuxlauncher unpuxhost" || tasks\microsoft\windows\unp set "exe=%exe% windows10upgraderapp dwtrig20 dw20 gwx" || windows10upgrade :: error reporting blocking set "exe=%exe% wermgr werfault werfaultsecure dwwin" || tasks\microsoft\windows\windows error reporting :: diag - optional blocking of diagnostics / telemetry rem set "exe=%exe% compattelrunner" || tasks\microsoft\windows\application experience rem set "exe=%exe% dstokenclean appidtel" || tasks\microsoft\windows\applicationdata rem set "exe=%exe% wsqmcons" || tasks\microsoft\windows\customer experience improvement prg rem set "exe=%exe% dusmtask" || tasks\microsoft\windows\dusm rem set "exe=%exe% dmclient" || tasks\microsoft\windows\feedback\siuf rem set "exe=%exe% datausagelivetiletask" || tasks\{sid}\datasenselivetiletask rem set "exe=%exe% diagnosticshub.standardcollector.service" || system32\diagsvcs rem set "exe=%exe% hxtsr" || windowsapps\microsoft.windowscommunicationsapps :: other - optional blocking of other tools rem set "exe=%exe% pilotshubapp" || program files\windowsapps\microsoft.windowsfeedbackhub_ rem set "exe=%exe% speechmodeldownload speechruntime" || tasks\microsoft\windows\speech recommended rem set "exe=%exe% locationnotificationwindows windowsactiondialog" || tasks\microsoft\windows\location rem set "exe=%exe% dfdwiz disksnapshot" || tasks\microsoft\windows\diskfootprint ::---------------------------------------------------------------------------------------------------------------------------------- :: all_entries - used to cleanup orphaned / commented entries between script versions set e1=tiworker usoclient wuauclt wusa waasmedic sihclient windowsupdatebox getcurrentrollback winrebootapp64 winrebootapp32 set e2=musnotification musnotifyicon updatenotificationmgr unpuxlauncher unpuxhost windows10upgraderapp dwtrig20 dw20 gwx wuapihost set e3=wermgr werfault werfaultsecure dwwin compattelrunner dstokenclean appidtel wsqmcons dusmtask dmclient datausagelivetiletask set e4=diagnosticshub.standardcollector.service hxtsr pilotshubapp speechmodeldownload speechruntime locationnotificationwindows set e5=windowsactiondialog dfdwiz disksnapshot trustedinstaller set old_entries=raserver clipup dism shellservicehost backgroundtaskhost set all_entries=%e1% %e2% %e3% %e4% %e5% :: cleanup orphaned / commented items between script versions echo. for %%c in (%old_entries%) do call :cleanup_orphaned %%c silent for %%c in (%all_entries%) do call :cleanup_orphaned %%c echo. :: toggle execution via ifeo set/a "bl=0" & set/a "unbl=0" & set "registry_mismatch=echo [registry mismatch corrected] & echo." for %%a in (%exe%) do call :toggleexecution "%ifeo%\%%a.exe" if %bl% gtr 0 if %unbl% gtr 0 %registry_mismatch% & for %%a in (%exe%) do call :toggleexecution "%ifeo%\%%a.exe" forced echo. :: done! echo --------------------------------------------------------------------- if "%status%"=="disabled" ( color 0b &echo update notification now enabled! ) else color 0c &echo update notification now disabled echo --------------------------------------------------------------------- echo. pause exit ::---------------------------------------------------------------------------------------------------------------------------------- :: utility functions ::---------------------------------------------------------------------------------------------------------------------------------- :check_status set "ifeo=hklm\software\microsoft\windows nt\currentversion\image file execution options" & set "ok=" reg query "%ifeo%\musnotification.exe" /v debugger 1>nul 2>nul && set "status=disabled" || set "status=enabled!" exit/b :cleanup_orphaned %1:[entry to check, used internally] %2:[anytext=silent] call set "orphaned=%%exe:%1=%%" & set "okey="%ifeo%\%1.exe"" if /i "%orphaned%"=="%exe%" reg delete %okey% /v "debugger" /f >nul 2>nul & if /i ".%2"=="." echo %1 not selected.. exit/b :toggleexecution %1:[regpath] %2:[optional "forced"] set "dummy=%windir%\system32\systray.exe" & rem allow dummy process creation to limit errors if "%status%_%2"=="disabled_forced" reg delete "%~1" /v "debugger" /f >nul 2>nul & exit/b if "%status%_%2"=="enabled!_forced" reg add "%~1" /v debugger /d "%dummy%" /f >nul 2>nul & exit/b reg query "%~1" /v debugger 1>nul 2>nul && set "isblocked=1" || set "isblocked=" if defined isblocked reg delete "%~1" /v "debugger" /f >nul 2>nul & set/a "unbl+=1" & echo %~n1 un-blocked! & exit/b reg add "%~1" /v debugger /d "%dummy%" /f >nul 2>nul & set/a "bl+=1" & echo %~n1 blocked! & taskkill /im %~n1 /t /f >nul 2>nul exit/b ::---------------------------------------------------------------------------------------------------------------------------------- :"init" [ batch entry function ] ::---------------------------------------------------------------------------------------------------------------------------------- @echo off & cls & setlocal & if "%1"=="init" shift &shift & goto :main &rem admin self-restart flag found, jump to main reg query "hkey_users\s-1-5-20\environment" /v temp 1>nul 2>nul && goto :main || call :about 0c & echo requesting admin rights.. call cscript /nologo /e:jscript "%~f0" get_rights "%1" & exit ::---------------------------------------------------------------------------------------------------------------------------------- */ // [ jscript functions ] all batch lines above are treated as a /* js comment */ in cscript function get_rights(fn) { var console_init_shift='/c start "init" "'+fn+'"'+' init '+fn+' '+wsh.arguments(1); wsh.createobject("shell.application").shellexecute('cmd.exe',console_init_shift,"","runas",1); } if (wsh.arguments.length>=1 && wsh.arguments(0)=="get_rights") get_rights(wsh.scriptfullname); //