GameLife
Windows Secrets
Téléchargements Packages Linux macOS Forum Discord

Windows Secrets

Commandes & astuces triées, avec boutons Copier sur chaque commande.

PowerToys

Outil officiel Microsoft (productivité). Page officielle :

Outils système & maintenance

2) Menu Power User caché
shell:::{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}
Commande
shell:::{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}
3) Shell Commands cachés
shell:::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE} → Informations système
shell:::{ED7BA470-8E54-465E-825C-99712043E01C} → GodMode
shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D} → Ce PC
shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E} → Connexions Réseau
shell:::{D20EA4E1-3957-11D2-A40B-0C5020524152} → Outils d’administration
Commande
shell:::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}  → Informations système
Commande
shell:::{ED7BA470-8E54-465E-825C-99712043E01C}  → GodMode
Commande
shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}  → Ce PC
Commande
shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}  → Connexions Réseau
Commande
shell:::{D20EA4E1-3957-11D2-A40B-0C5020524152}  → Outils d’administration
4) Hidden Administrator Elevation (auto admin)
PowerShell Admin :
Set-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name EnableLUA -Value 0
Commande
PowerShell Admin :
5) Outils internes cachés
perfmon /res → Moniteur ressources secret
perfmon /report → Diagnostic complet 60 sec
dcomcnfg → Configuration COM
diskmgmt.msc → Gestion disques avancée
eventvwr → Journaux système
secpol.msc → Stratégies sécurité
gpedit.msc → Éditeur stratégies
Commande
perfmon /res        → Moniteur ressources secret
Commande
perfmon /report     → Diagnostic complet 60 sec
Commande
dcomcnfg            → Configuration COM
Commande
diskmgmt.msc        → Gestion disques avancée
Commande
eventvwr            → Journaux système
Commande
secpol.msc          → Stratégies sécurité
Commande
gpedit.msc          → Éditeur stratégies
6) Mode système minimal (debug Microsoft)
msconfig → Démarrage sécurisé → Minimal
Commande
msconfig → Démarrage sécurisé → Minimal
7) Réparations profondes
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Commande
DISM /Online /Cleanup-Image /ScanHealth
Commande
DISM /Online /Cleanup-Image /CheckHealth
Commande
DISM /Online /Cleanup-Image /RestoreHealth
Commande
sfc /scannow
10) Commandes WinRE offline
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
DISM /Image:C:\ /Cleanup-Image /RestoreHealth

BONUS – Menus système cachés
control admintools
control userpasswords2
control schedtasks
rundll32.exe shell32.dll,Control_RunDLL
Commande
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
Commande
DISM /Image:C:\ /Cleanup-Image /RestoreHealth
Commande
control admintools
Commande
control userpasswords2
Commande
control schedtasks
Commande
rundll32.exe shell32.dll,Control_RunDLL
Intro
SECRETS SYSTEME CACHES WINDOWS (CATÉGORIE 4)
1) GodMode – Menu admin complet
Créer un dossier nommé :
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
8) Sous-menu outils système
%windir%\system32\control.exe /name Microsoft.AdministrativeTools
9) Accès SYSTEM32
%windir%\system32
%windir%\SysWOW64

UI & productivité

SECRET 1 - GODMODE (MEGA PANNEAU DE CONFIG CACHÉ)
Créer un dossier "GodMode" spécial sur le Bureau :

CMD / .BAT :
mkdir "%USERPROFILE%\Desktop\GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}"

Pour le désactiver : il suffit de SUPPRIMER le dossier.
Commande
CMD / .BAT :
mkdir "%USERPROFILE%\Desktop\GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}"
SECRET 2 - MENU CONTEXTUEL CLASSIQUE (WIN10) SOUS WIN11
Active le vieux menu clic droit (sans "Afficher plus d'options").

Activer (CMD / .BAT) :
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" ^
/ve /t REG_SZ /d "" /f

Désactiver (remettre le menu moderne) :
reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f

Après modification, relancer l'explorateur :
taskkill /IM explorer.exe /F & start explorer.exe
Commande
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" ^
/ve /t REG_SZ /d "" /f
Commande
reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
Commande
taskkill /IM explorer.exe /F & start explorer.exe
SECRET 3 - AFFICHER LES SECONDES DANS L'HORLOGE
Active les secondes dans l'horloge de la barre des tâches.

Activer :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f

Désactiver :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v ShowSecondsInSystemClock /t REG_DWORD /d 0 /f

Un redémarrage / déconnexion peut être nécessaire.
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v ShowSecondsInSystemClock /t REG_DWORD /d 0 /f
SECRET 4 - TAILLE DE LA BARRE DES TÂCHES (ICÔNES)
Change la taille globale de la barre des tâches (icônes).

Clé :
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Valeur DWORD : TaskbarSi

0 = petite barre / petites icônes
1 = taille par défaut
2 = grande barre / grandes icônes

Commandes :

Petite barre :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarSi /t REG_DWORD /d 0 /f

Taille normale :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarSi /t REG_DWORD /d 1 /f

Grande barre :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarSi /t REG_DWORD /d 2 /f

Après changement, relancer explorer :
taskkill /IM explorer.exe /F & start explorer.exe
Commande
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarSi /t REG_DWORD /d 0 /f
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarSi /t REG_DWORD /d 1 /f
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarSi /t REG_DWORD /d 2 /f
Commande
taskkill /IM explorer.exe /F & start explorer.exe
SECRET 5 - BOUTON "METTRE FIN À LA TÂCHE" SUR LA BARRE DES TÂCHES
Ajoute "Mettre fin à la tâche" dans le clic droit sur une appli dans la barre des tâches.

Clé :
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Valeur DWORD : TaskbarEndTask

Activer :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarEndTask /t REG_DWORD /d 1 /f

Désactiver :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarEndTask /t REG_DWORD /d 0 /f

FIN DU PACK SECRETS UI

Tu peux utiliser ces commandes :
- directement dans un .BAT
- dans CMD admin
- dans PowerShell (en préfixant par `cmd /c` si besoin)
Commande
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarEndTask /t REG_DWORD /d 1 /f
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v TaskbarEndTask /t REG_DWORD /d 0 /f
Intro
SECRETS UI WINDOWS 10/11 - PACK PERSO

⚠ AVERTISSEMENT
- Toujours lancer les commandes / .bat en tant qu'ADMINISTRATEUR.
- Idéalement créer un point de restauration système avant de jouer avec le Registre.
- Tous les tweaks ci-dessous sont RÉVERSIBLES.

Performance & optimisation

1) Vérifier les fichiers système
sfc /scannow
Commande
sfc /scannow
2) Réparer l’image de Windows
DISM /Online /Cleanup-Image /RestoreHealth
Commande
DISM /Online /Cleanup-Image /RestoreHealth
3) Activer le plan d’alimentation "Performances ultimes"
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61

(Ensuite, choisir le plan dans : Paramètres > Système > Alimentation)
Commande
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
4) Désactiver le Power Throttling (limitation CPU cachée)
Activer la désactivation globale :
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v PowerThrottlingOff /t REG_DWORD /d 1 /f

Revenir au comportement par défaut :
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v PowerThrottlingOff /t REG_DWORD /d 0 /f
Commande
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v PowerThrottlingOff /t REG_DWORD /d 1 /f
Commande
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v PowerThrottlingOff /t REG_DWORD /d 0 /f
5) Empêcher les apps UWP de tourner en arrière-plan
Désactiver les apps UWP en arrière-plan :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v GlobalUserDisabled /t REG_DWORD /d 1 /f

Réactiver :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v GlobalUserDisabled /t REG_DWORD /d 0 /f
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v GlobalUserDisabled /t REG_DWORD /d 1 /f
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v GlobalUserDisabled /t REG_DWORD /d 0 /f
6) Activer le GPU Scheduling matériel (si supporté)
Activer :
reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v HwSchMode /t REG_DWORD /d 2 /f

Désactiver (valeur classique) :
reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v HwSchMode /t REG_DWORD /d 1 /f
Commande
reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v HwSchMode /t REG_DWORD /d 2 /f
Commande
reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v HwSchMode /t REG_DWORD /d 1 /f
7) Optimisation des jeux (GameConfigStore)
Activer les options de compatibilité / FSE :

reg add "HKCU\System\GameConfigStore" /v GameDVR_FSEBehaviorMode /t REG_DWORD /d 2 /f
reg add "HKCU\System\GameConfigStore" /v GameDVR_DXGIHonorFSEWindowsCompatible /t REG_DWORD /d 1 /f
reg add "HKCU\System\GameConfigStore" /v GameDVR_HonorUserFSEBehaviorMode /t REG_DWORD /d 1 /f

Réinitialiser ces options (approximation) :
reg delete "HKCU\System\GameConfigStore" /v GameDVR_FSEBehaviorMode /f
reg delete "HKCU\System\GameConfigStore" /v GameDVR_DXGIHonorFSEWindowsCompatible /f
reg delete "HKCU\System\GameConfigStore" /v GameDVR_HonorUserFSEBehaviorMode /f
Commande
reg add "HKCU\System\GameConfigStore" /v GameDVR_FSEBehaviorMode /t REG_DWORD /d 2 /f
Commande
reg add "HKCU\System\GameConfigStore" /v GameDVR_DXGIHonorFSEWindowsCompatible /t REG_DWORD /d 1 /f
Commande
reg add "HKCU\System\GameConfigStore" /v GameDVR_HonorUserFSEBehaviorMode /t REG_DWORD /d 1 /f
Commande
reg delete "HKCU\System\GameConfigStore" /v GameDVR_FSEBehaviorMode /f
Commande
reg delete "HKCU\System\GameConfigStore" /v GameDVR_DXGIHonorFSEWindowsCompatible /f
Commande
reg delete "HKCU\System\GameConfigStore" /v GameDVR_HonorUserFSEBehaviorMode /f
8) Désactiver Game DVR / captures en arrière-plan
Désactiver :
reg add "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 0 /f

Réactiver :
reg add "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 1 /f
Commande
reg add "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 0 /f
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 0 /f
Commande
reg add "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 1 /f
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 1 /f
9) Activer l’Assistant stockage (nettoyage automatique)
Activer (nettoyage auto) :
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" /v 01 /t REG_DWORD /d 1 /f

Les réglages fins se font dans :
Paramètres > Système > Stockage > Assistant Stockage
Commande
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" /v 01 /t REG_DWORD /d 1 /f
Intro
SECRETS PERFORMANCE WINDOWS 10 / 11
===================================

À lancer dans un Terminal admin (PowerShell ou CMD).

Sécurité & récupération

1) Lancer l'environnement de recuperation avance (WinRE)
Commande (a lancer dans Windows) :
shutdown /r /o /f /t 00

Cela redemarre le PC directement sur :
- Reparation du demarrage
- Invite de commandes
- Restauration du systeme
- Desactivation de pilotes / signatures
- etc.
Commande
shutdown /r /o /f /t 00
2) Verifier et activer WinRE
Verifier l'etat de WinRE :
reagentc /info

Activer WinRE :
reagentc /enable

Reparer WinRE (si casse) :
reagentc /disable
reagentc /setreimage /path C:\Windows\System32\Recovery
reagentc /enable
Commande
reagentc /info
Commande
reagentc /enable
Commande
reagentc /disable
reagentc /setreimage /path C:\Windows\System32\Recovery
reagentc /enable
3) SFC offline (reparer Windows meme s'il ne demarre plus)
A utiliser depuis WinRE (Invite de commandes) :

sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
Commande
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
4) DISM offline (reconstruction de l'image systeme)
Toujours depuis WinRE ou une autre session :

DISM /Image:C:\ /Cleanup-Image /RestoreHealth

Avec source d'installation (ISO / cle) :
DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim

(Changer D: par la lettre de la cle / ISO montee)
Commande
DISM /Image:C:\ /Cleanup-Image /RestoreHealth
Commande
DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim
5) Reparer le boot (MBR/UEFI)
Depuis WinRE > Invite de commandes :

bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd

En UEFI, si besoin de re-creer les fichiers de boot :
bcdboot C:\Windows /f UEFI /s X:

(X = partition EFI, souvent 100~300 Mo, en FAT32)
Commande
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
Commande
bcdboot C:\Windows /f UEFI /s X:
6) Activer le mode "super administrateur" (AutoElevate simplifie)
ATTENTION : a n'utiliser que si tu sais ce que tu fais.

Registre :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Valeurs a regler :
EnableLUA = 1 (DWORD)
ConsentPromptBehaviorAdmin = 0 (DWORD)

Effet : les demandes admin sont automatiquement valides.

Pour remettre le comportement par defaut :
ConsentPromptBehaviorAdmin = 2
Commande
Registre :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Commande
EnableLUA = 1 (DWORD)
ConsentPromptBehaviorAdmin = 0 (DWORD)
Commande
ConsentPromptBehaviorAdmin = 2
7) GodMode (panneau de configuration secret)
Sur le bureau :
- Clic droit > Nouveau > Dossier
- Renommer le dossier en :

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

Ce dossier contient plus de 230 parametres systeme centralises.
Commande
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
8) Audit Mode (configuration avancee du systeme)
Au premier demarrage d'une nouvelle installation, ou apres sysprep :
Ctrl + Shift + F3

Windows redemarre en mode Audit :
- session speciale sans utilisateur defini
- ideal pour installer logiciels, drivers, configurations
- ensuite, tu peux utiliser sysprep pour generaliser l'image
Commande
Ctrl + Shift + F3
9) Lancer la restauration systeme offline
Depuis WinRE > Invite de commandes :

rstrui.exe /offline:C:\Windows

Permet de restaurer a un point precedent meme si Windows ne demarre plus.
Commande
rstrui.exe /offline:C:\Windows
10) Lancer SFC / DISM online (depuis Windows)
Depuis une session Windows (Terminal admin ou CMD admin) :

sfc /scannow

Puis si besoin :

DISM /Online /Cleanup-Image /RestoreHealth

Ces deux commandes corrigent la plupart des corruptions systeme classiques.

FIN DU FICHIER
Commande
sfc /scannow
Commande
DISM /Online /Cleanup-Image /RestoreHealth
Intro
SECRETS WINDOWS 10/11 - SECURITE & RECUPERATION

Réseau & gaming

1) Supprimer la bande passante réservée (QoS)
Windows réserve une partie de la bande passante (QoS, Windows Update…).
On peut lui dire de ne rien réserver.

► ACTIVER le tweak (0% réservé) :

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Psched" /v NonBestEffortLimit /t REG_DWORD /d 0 /f

► REVENIR au comportement normal (valeur supprimée = défaut ~20%) :

reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Psched" /v NonBestEffortLimit /f
Commande
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Psched" /v NonBestEffortLimit /t REG_DWORD /d 0 /f
Commande
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Psched" /v NonBestEffortLimit /f
2) Réduire la latence réseau (NetworkThrottlingIndex)
Windows applique une limitation réseau pour le multimédia.
Pour le gaming, on peut la désactiver.

► MODE GAMING (désactiver le throttling) :

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ^
/v NetworkThrottlingIndex /t REG_DWORD /d 4294967295 /f

(4294967295 = 0xFFFFFFFF = pas de limitation réseau)

► VALEUR PAR DÉFAUT :

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ^
/v NetworkThrottlingIndex /t REG_DWORD /d 10 /f
Commande
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ^
/v NetworkThrottlingIndex /t REG_DWORD /d 4294967295 /f
Commande
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ^
/v NetworkThrottlingIndex /t REG_DWORD /d 10 /f
3) Priorité CPU aux jeux (SystemResponsiveness)
Windows réserve une partie du CPU pour les services en arrière-plan.
Sur une machine gaming, on peut mettre 0%.

► MODE GAMING (0% réservé pour background) :

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ^
/v SystemResponsiveness /t REG_DWORD /d 0 /f

► VALEUR PAR DÉFAUT (PC bureautique) :

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ^
/v SystemResponsiveness /t REG_DWORD /d 20 /f
Commande
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ^
/v SystemResponsiveness /t REG_DWORD /d 0 /f
Commande
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ^
/v SystemResponsiveness /t REG_DWORD /d 20 /f
4) DNS Cloudflare (1.1.1.1) pour réduire la latence web
Remplace les DNS du FAI par ceux de Cloudflare.
À ADAPTER selon le nom de ton interface : "Ethernet", "Wi-Fi", etc.

► METTRE CLOUDFLARE SUR ETHERNET :

netsh interface ip set dns name="Ethernet" static 1.1.1.1 primary
netsh interface ip add dns name="Ethernet" 1.0.0.1 index=2

► METTRE CLOUDFLARE SUR WI-FI :

netsh interface ip set dns name="Wi-Fi" static 1.1.1.1 primary
netsh interface ip add dns name="Wi-Fi" 1.0.0.1 index=2

► REVENIR EN MODE AUTO (DNS FAI) :

Ethernet :
netsh interface ip set dns name="Ethernet" dhcp

Wi-Fi :
netsh interface ip set dns name="Wi-Fi" dhcp
Commande
netsh interface ip set dns name="Ethernet" static 1.1.1.1 primary
Commande
netsh interface ip add dns name="Ethernet" 1.0.0.1 index=2
Commande
netsh interface ip set dns name="Wi-Fi" static 1.1.1.1 primary
Commande
netsh interface ip add dns name="Wi-Fi" 1.0.0.1 index=2
Commande
netsh interface ip set dns name="Ethernet" dhcp
Commande
netsh interface ip set dns name="Wi-Fi" dhcp
5) Auto-tuning TCP (taille fenêtre réseau)
Permet une meilleure gestion des transferts réseau.
En général déjà activé, mais au cas où :

► RÉACTIVER l’auto-tuning TCP :

netsh interface tcp set global autotuninglevel=normal

► LE DÉSACTIVER (PAS recommandé sauf cas particulier) :

netsh interface tcp set global autotuninglevel=disabled


FIN DU FICHIER
Commande
netsh interface tcp set global autotuninglevel=normal
Commande
netsh interface tcp set global autotuninglevel=disabled
Intro
SECRETS RÉSEAU WINDOWS - TWEAKS GAMING & LATENCE
=================================================

⚠️ Tous ces réglages sont à lancer en tant qu’ADMIN (cmd ou .bat en admin).
⚠️ Ils sont RÉVERSIBLES (commande de retour juste en dessous à chaque fois).

PowerShell — Niveau 1

1) Activer le mode PERFORMANCES ULTIMES caché
==================================================
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61

Puis dans :
Panneau de configuration > Options d'alimentation
→ Choisir le plan "Performances ultimes".

==================================================
Commande
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
3) Scanner et réparer Windows (en ligne)
==================================================
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

==================================================
Commande
sfc /scannow
Commande
DISM /Online /Cleanup-Image /RestoreHealth
7) Lister les logiciels installés
==================================================
Get-WmiObject -Class Win32_Product | Select-Object Name, Version

Version plus rapide (mais liste différente) :
winget list

==================================================
Commande
winget list
9) Démarrer des services système importants
==================================================
# Windows Search
Start-Service WSearch

# BITS (téléchargements Windows Update etc)
Start-Service BITS

==================================================
Commande
Start-Service WSearch
Commande
Start-Service BITS
11) Désactiver Bing Search dans la recherche Windows
(utile en cas de menu gris / bug)
==================================================
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" ^
/v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f

Revenir au comportement par défaut :
reg delete "HKCU\Software\Policies\Microsoft\Windows\Explorer" ^
/v DisableSearchBoxSuggestions /f

==================================================
Commande
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" ^
/v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f
Commande
reg delete "HKCU\Software\Policies\Microsoft\Windows\Explorer" ^
/v DisableSearchBoxSuggestions /f
Intro
SECRETS POWERSHELL - NIVEAU 1 (UTILISABLES ET UTILES)

⚠ UTILISATION A TES RISQUES ⚠
Toujours lancer PowerShell en tant qu'administrateur pour ces commandes : clic droit sur "Terminal" / "PowerShell" → Exécuter en tant qu'admin.

==================================================
2) Redémarrer proprement l'Explorateur Windows
==================================================
Stop-Process -Name explorer -Force; Start-Process explorer.exe

==================================================
4) Vérifier les disques physiques (état de base)
==================================================
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, HealthStatus, OperationalStatus, Usage, Size

==================================================
5) Tester la vitesse réelle du disque (winsat)
==================================================
winsat disk -seq -write -drive C
winsat disk -seq -read -drive C

Remplace C par la lettre du disque à tester.

==================================================
6) Infos carte mère, BIOS, machine
==================================================
Get-WmiObject Win32_BaseBoard
Get-WmiObject Win32_BIOS
Get-CimInstance Win32_ComputerSystem

==================================================
8) Activer le sous-système Linux (WSL)
==================================================
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -All

Redémarre le PC ensuite.

==================================================
10) Rebuild basique de l’index de recherche
==================================================
Get-Service WSearch | Restart-Service

==================================================
12) Lancer un programme en admin automatiquement (auto-elevate simple)
==================================================
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" `
-Name "C:\chemin\vers\programme.exe" -PropertyType String -Value "~ RUNASADMIN"

(À UTILISER AVEC PRECAUTION)

FIN - NIVEAU 1

PowerShell — Niveau 2 (avancé)

3) DISM offline (reparation d'une installation Windows qui ne demarre plus)
==================================================
DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim

- C: = partition Windows (hors ligne)
- D: = ISO/clef d'installation Windows
- install.wim = fichier d'image Windows

==================================================
Commande
DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim
4) Desactiver temporairement certains services critiques (pour debug)
==================================================
Stop-Service "WSearch"
Stop-Service "BITS"
Stop-Service "SysMain"

Redemarrer ensuite :
Start-Service "WSearch"
Start-Service "BITS"
Start-Service "SysMain"

==================================================
Commande
Start-Service "WSearch"
Commande
Start-Service "BITS"
Commande
Start-Service "SysMain"
10) Regrouper toutes les infos reseau dans un rapport
==================================================
ipconfig /all > C:\rapport_reseau.txt
Get-NetAdapter | Out-File C:\interfaces_reseau.txt

FIN - NIVEAU 2 (DANGEREUX)
Commande
ipconfig /all > C:\rapport_reseau.txt
Intro
SECRETS POWERSHELL - NIVEAU 2 (DANGEREUX / EXPERTS)

⚠⚠⚠ AVERTISSEMENT ⚠⚠⚠
Ces commandes peuvent :
- casser l'installation de Windows
- ouvrir des failles de sécurité
- supprimer des comptes / protections
- rendre le système instable

A UTILISER UNIQUEMENT SI TU SAIS EXACTEMENT CE QUE TU FAIS.

==================================================
1) Creer un compte SuperAdmin ultra-puissant
==================================================
net user SuperAdmin /add
net localgroup administrators SuperAdmin /add
net user SuperAdmin /active:yes

Pour le desactiver ensuite :
net user SuperAdmin /active:no

==================================================
2) Auto-elevate avance (lancer un .exe toujours en admin)
==================================================
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" `
-Name "C:\chemin\vers\programme.exe" -PropertyType String -Value "~ RUNASADMIN"

Supprimer ensuite :
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" `
-Name "C:\chemin\vers\programme.exe"

==================================================
5) Forcer la desinstallation d'apps provisionnees (preinstall Windows 10/11)
==================================================
Get-AppxProvisionedPackage -Online ^
| Where-Object {$_.DisplayName -like "*Xbox*"} ^
| Remove-AppxProvisionedPackage -Online

Remplacer *Xbox* par autre chose (Copilot, Bing, etc).

==================================================
6) Lister toutes les taches planifiees + celles cachees
==================================================
Get-ScheduledTask | Select-Object TaskName, TaskPath, State

==================================================
7) Exporter toutes les infos materiel + systeme dans un fichier HTML
==================================================
Get-ComputerInfo | ConvertTo-Html | Out-File C:\rapport_systeme.html

==================================================
8) Script de "snapshot" des services (etat courant)
==================================================
Get-Service | Select-Object Name, Status, StartType ^
| Sort-Object Name ^
| Out-File C:\etat_services.txt

==================================================
9) Verifier rapidement les erreurs critiques dans l'observateur d'evenements
==================================================
Get-WinEvent -LogName System -MaxEvents 50 | Where-Object {$_.LevelDisplayName -eq "Error"}

==================================================

DNS — liste & conseils

Intro
LISTE DNS RECOMMANDÉS (Gaming, Sécurité, Rapidité, Fiabilité)
==============================================================

🔥 DNS Très Rapides (Top mondial)
Cloudflare :
- 1.1.1.1
- 1.0.0.1
- IPv6 : 2606:4700:4700::1111 / ::1001

Google DNS :
- 8.8.8.8
- 8.8.4.4
- IPv6 : 2001:4860:4860::8888 / ::8844

Quad9 (sécurité + rapidité) :
- 9.9.9.9
- 149.112.112.112
- IPv6 : 2620:fe::fe

OpenDNS (Cisco) :
- 208.67.222.222
- 208.67.220.220
- IPv6 : 2620:0:ccc::2


🛡️ DNS Sécurité (Anti‑Malware / Filtrage)
Quad9 Security :
- 9.9.9.9
- 149.112.112.112

OpenDNS FamilyShield :
- 208.67.222.123
- 208.67.220.123

CleanBrowsing (Sécurité) :
- 185.228.168.9
- 185.228.169.9

AdGuard DNS (anti‑pub / anti‑tracking) :
- 94.140.14.14
- 94.140.15.15

NextDNS (configurable) :
- Personnel (dépend de ton ID)
- nextdns.io


🌍 DNS Européens / FR (Faible latence en Europe)
FDN (France) :
- 80.67.169.12
- 80.67.169.40

FreeDNS / Afraid :
- 37.235.1.174
- 37.235.1.177

DNS.Watch (Allemagne, sans logs) :
- 84.200.69.80
- 84.200.70.40


🔒 DNS Vie Privée (No‑Logs / Anti‑Tracking)
Cloudflare (privacy-first) :
- 1.1.1.1
- 1.0.0.1

DNS.Watch (no logs) :
- 84.200.69.80
- 84.200.70.40

Mullvad DNS :
- 194.242.2.2
- 194.242.2.3

LibreDNS :
- 116.203.115.192


👪 DNS Familial / Filtrage Contenu Adulte
CleanBrowsing Family :
- 185.228.168.168
- 185.228.169.168

OpenDNS FamilyShield :
- 208.67.222.123
- 208.67.220.123

AdGuard DNS Family :
- 94.140.14.15
- 94.140.15.16


🚀 Recommandations selon utilisation
Gaming / faible latence :
→ Cloudflare ou Google

Sécurité / anti‑malware :
→ Quad9 Security

Vie privée :
→ DNS.Watch ou Mullvad DNS

Anti‑pub :
→ AdGuard DNS

Réseau domestique enfants :
→ CleanBrowsing Family / OpenDNS FamilyShield


FIN DU FICHIER.