Désactiver les tâches forcées de mises à jour Windows 10/11

fabul Messages postés 37605 Date d'inscription dimanche 18 janvier 2009 Statut Modérateur Dernière intervention 13 avril 2024 - Modifié le 1 mars 2023 à 18:11
fabul Messages postés 37605 Date d'inscription dimanche 18 janvier 2009 Statut Modérateur Dernière intervention 13 avril 2024 - 7 mai 2022 à 18:44

Attention ce qui suit s'adresse aux utilisateurs avertis

Voici un moyen de désactiver les tâches planifiées forcées de mises à jour Windows 10 en quelques étapes sans rien "installer".

Créez un fichier avec le bloc-notes dont le nom se termine par .BAT (Enregistrer avec le bloc notes sous (Type: Tous les fichiers) et .BAT plutôt que .TXT) qui contient ceci, et exécutez le en tant qu'administrateur.

Si vous préférez télécharger le fichier zippé: https://www.cjoint.com/c/MCbrjeeO4Os


@echo off
echo.
:begin
echo.
echo.Supprimer/Restaurer les taches planifiees des mises a jour automatiques
echo.
echo.Option 1 = Supprimer les taches planifiees des mises a jour automatiques
echo.Option 2 = Restaurer les taches planifiees des mises a jour automatiques
echo.Option 3 = Quitter
set choice=
set /p choice=:
if '%choice%'=='1' goto 1
if '%choice%'=='2' goto 2
if '%choice%'=='3' goto quit
:1
md "C:\Windows\System32\Tasks Backup\Microsoft\Windows\UpdateOrchestrator"
md "C:\Windows\System32\Tasks Backup\Microsoft\Windows\WindowsUpdate"
xcopy "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator" "C:\Windows\System32\Tasks Backup\Microsoft\Windows\UpdateOrchestrator"
xcopy "C:\Windows\System32\Tasks\Microsoft\Windows\WindowsUpdate" "C:\Windows\System32\Tasks Backup\Microsoft\Windows\WindowsUpdate"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_AC"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_Battery"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Report policies"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Maintenance Work"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Scan"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Wake To Work"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Work"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Start Oobe Expedite Work"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\StartOobeAppsScan"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\StartOobeAppsScanAfterUpdate"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\UpdateModelTask"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\USO_UxBroker"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\UUS Failover Task"
del /s /f /a:h /a:S /a:r /a:- "C:\Windows\System32\Tasks\Microsoft\Windows\WindowsUpdate\Scheduled Start"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_AC"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_Battery"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Report policies"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Maintenance Work"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Scan"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Wake To Work"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Work"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Start Oobe Expedite Work"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\StartOobeAppsScan"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\StartOobeAppsScanAfterUpdate"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\UpdateModelTask"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\USO_UxBroker"
md "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\UUS Failover Task"
md "C:\Windows\System32\Tasks\Microsoft\Windows\WindowsUpdate\Scheduled Start"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_AC\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_Battery\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Report policies\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Maintenance Work\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Scan\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Wake To Work\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Work\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Start Oobe Expedite Work\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\StartOobeAppsScan\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\StartOobeAppsScanAfterUpdate\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\UpdateModelTask\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\USO_UxBroker\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\UUS Failover Task\NUL"
type nul > "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\WindowsUpdate\Scheduled Start\NUL"
@echo Succes!
goto begin
:2
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_AC"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_Battery"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Report policies"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Maintenance Work"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Scan"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Wake To Work"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Work"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Start Oobe Expedite Work"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\StartOobeAppsScan"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\StartOobeAppsScanAfterUpdate"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\UpdateModelTask"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\USO_UxBroker"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\UUS Failover Task"
rmdir /s /q "\\?\c:\Windows\System32\Tasks\Microsoft\Windows\WindowsUpdate"
xcopy "C:\Windows\System32\Tasks Backup\Microsoft\Windows\UpdateOrchestrator" "C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator"
mkdir "C:\Windows\System32\Tasks\Microsoft\Windows\WindowsUpdate"
xcopy "C:\Windows\System32\Tasks Backup\Microsoft\Windows\WindowsUpdate" "C:\Windows\System32\Tasks\Microsoft\Windows\WindowsUpdate"
@echo Succes!
goto begin
:quit




Vous aurez les choix 1 de supprimer ou 2 de restaurer les tâches planifiées de mises à jour automatiques.

Ensuite, téléchargez PowerRUN sur le site officiel www.sordum.org

https://www.sordum.org/9416/powerrun-v1-6-run-with-highest-privileges/

Ne requiert pas d'installation, démarrez le, et cliquez sur le symbole plus (+) pour ajouter le fichier C:\Windows\System32\mmc.exe à File Location

Dans Working Directory, choisissez le dossier C:\Windows\System32

Démarrez mmc.exe par PowerRUN avec le symbole de la flèche (>)

Ensuite, dans la console MMC, cliquez sur Fichier pour "Ajouter le logiciel enfichable": "Planificateur de tâches", cliquez Ajouter pour le glisser à droite, et faites OK puis OK.

Déroulez le planificateur de tâches et allez dans Microsoft\Windows\UpdateOrchestrator, et faites clic droit > Désactivé (Sur tous les items non désactivés)

Dans Microsoft\Windows\WindowsUpdate aussi

Vous pouvez fermer la console sans enregistrer.

Note: Après l'utilisation du fichier .bat Autoruns avec les pleins droits permet aussi dans sa section Scheduled Tasks de désactiver ces lancements de tâches. UpdateOrchestrator et WindowsUpdate.

Ensuite pour désactiver le reste des fonctions de mise à jour automatiques

Créez un fichier avec le bloc-notes dont le nom se termine par .REG (Enregistrer avec le bloc notes sous (Type: Tous les fichiers) et .REG plutôt que .TXT) qui contient ceci, et exécutez le en tant qu'administrateur.

Si vous préférez télécharger le fichier zippé: https://www.cjoint.com/c/MCbrkQYmnPs


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer]
NoAutoUpdate=dword00000001

[HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerWAU]
Disabled=dword00000001

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate]

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
"Disabled"=dword:00000001
"DontPromptForWindowsUpdate"=dword:00000001
"IncludeRecommendedUpdates"=dword:00000000
"NoAutoUpdate"=dword:00000001

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\DriverSearching]
"DontPromptForWindowsUpdate"=dword:00000001

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"AUOptions"=dword:00000004
"Disabled"=dword:00000001
"IncludeRecommendedUpdates"=dword:00000000
"NoAUAsDefaultShutdownOption"=dword:00000001
"NoAUShutdownOption"=dword:00000001
"NoAutoUpdate"=dword:00000001

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000004
"Disabled"=dword:00000001
"IncludeRecommendedUpdates"=dword:00000000
"NoAUAsDefaultShutdownOption"=dword:00000001
"NoAUShutdownOption"=dword:00000001
"NoAutoUpdate"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DriverSearching]
"DontPromptForWindowsUpdate"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"DeferUpgrade"=dword:00000001
"DeferUpgradePeriod"=dword:00000001
"DeferUpdatePeriod"=dword:00000000
"ExcludeWUDriversInQualityUpdate"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000001
"NoAutoRebootWithLoggedOnUsers"=dword:00000001
"AUOptions"=dword:00000004
"Disabled"=dword:00000001
"IncludeRecommendedUpdates"=dword:00000000
"NoAUAsDefaultShutdownOption"=dword:00000001
"NoAUShutdownOption"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000004
"Disabled"=dword:00000001
"IncludeRecommendedUpdates"=dword:00000000
"NoAUAsDefaultShutdownOption"=dword:00000001
"NoAUShutdownOption"=dword:00000001
"NoAutoUpdate"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\Explorer\WAU]
"Disabled"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\DriverSearching]
"DontPromptForWindowsUpdate"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\WindowsUpdate]
"DeferUpgrade"=dword:00000001
"DeferUpgradePeriod"=dword:00000001
"DeferUpdatePeriod"=dword:00000000
"ExcludeWUDriversInQualityUpdate"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000001
"NoAutoRebootWithLoggedOnUsers"=dword:00000001
"AUOptions"=dword:00000004
"Disabled"=dword:00000001
"IncludeRecommendedUpdates"=dword:00000000
"NoAUAsDefaultShutdownOption"=dword:00000001
"NoAUShutdownOption"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000004
"Disabled"=dword:00000001
"IncludeRecommendedUpdates"=dword:00000000
"NoAUAsDefaultShutdownOption"=dword:00000001
"NoAUShutdownOption"=dword:00000001
"NoAutoUpdate"=dword:00000001



Ensuite pour gérer le reste du système de mises à jour, vous pouvez télécharger O&O ShutUp10 sur le site officiel www.oo-software.com

https://www.oo-software.com/fr/shutup10

Démarrez le, et appliquez les paramètres de désactivation dans la section Windows Update.

Il est recommandé de ne pas tout désactiver, vous pouvez perdre des fonctions

Comme:
(Dans la section tout en haut)
App Notification

(Dans la section tout en bas)
Désactiver le champ de recherche dans la barre des tâches
Network Connectivity Status Indicator

(Sont les seuls que je ne désactive pas)

Par contre, O&O désactive le service "Windows Update", pour pouvoir effectuer les mises à jour manuellement, on doit changer le mode du service Windows Update avec services.msc par clic droit sur le bouton Démarrer > Exécuter: tapez: services.msc

Faites clic droit sur le service Windows Update > Propriétés, et à Type de démarrage, changer le pour: Manuel

Après on doit juste ignorer dans O&O ShutUp10
(Mises à jour automatiques Windows Update (qui réapparait comme activé))

On peut aussi passer en mode Manuel le service "Mettre à jour le service Orchestrator"

Et passer en mode Manuel le Service Medic de Windows Update (WaaSMedicSvc) avec un fichier.reg ou avec cette clé.reg ou par clic droit sur le bouton Démarrer > Exécuter: Regedit

Pour Manuel mettre la valeur 3 avec "Modifier" sur la clé "Start"

 <b>Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WaaSMedicSvc]
"Start"=dword:00000003

</b>



Si le service Microsoft Update Health Service s'installe durant une mise à jour, on peut le passer en mode manuel soit par services.msc , Regedit, ou avec cette clé.reg

 <b>Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\uhssvc]
"Start"=dword:00000003

</b>




L'avantage de cette astuce est qu'elle n'empêche pas la possibilité de faire les mises à jour manuellement, mais désactive juste les tâches planifiées (Automatiques)

Note:
/!\ Avant d'effectuer une mise à jour majeure de version de Windows c'est préférable de restaurer les tâches planifiées, sinon il pourrait y avoir des problèmes pour remplacer ou déplacer des dossiers/fichiers, je n'ai pas testé /!\

Considérez cette astuce comme expérimentale, et non "Officielle", les résultats ne sont peut être pas tous connus.

Les dossiers crées par le fichier .BAT pour bloquer la réapparition des fichiers de tâches planifiés ne peuvent être supprimés qu'avec des commandes comme incluses dans le fichier .BAT

Conservez le.

Les fichiers sauvegardés se trouvent dans C:\Windows\System32\Tasks Backup

Personnes non confiantes s'abstenir!

Voila!

1 réponse

fabul Messages postés 37605 Date d'inscription dimanche 18 janvier 2009 Statut Modérateur Dernière intervention 13 avril 2024 5 160
Modifié le 26 juin 2023 à 20:23

Pour désactiver les Upgrades vers des nouvelles versions de Windows il y a ce fichier .reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Windows\Update]
"AllowOSUpgrade"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"DisableOSUpgrade"=dword:00000001

 

0