« Windows 10 » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications
 
(58 versions intermédiaires par le même utilisateur non affichées)
Ligne 2 : Ligne 2 :
= [[Astuces_Windows|Astuces]] =
= [[Astuces_Windows|Astuces]] =
* [[Astuces_Windows#Variables_d.27environnement|Variables d'environnement]]
* [[Astuces_Windows#Variables_d.27environnement|Variables d'environnement]]
* [https://superuser.com/questions/1522905/windows-10-search-not-loading-showing-blank-window/1522939#1522939 Windows 10 Search not loading, showing blank window]
* [[Batch_commandes#MKLINK|Symbolic link]]


== System Information ==
= Windows + R commands =
Windows + R - {{boxx|msinfo32}}
{| class="wikitable wtp wtmono1"
! Command
! Description
|-
| lusrmgr.msc || local user and group management
|-
| msinfo32 || system information
|-
| winver || Windows build version
|}


== Version de build ==
= Raccourcis clavier =
Win + R winver
{| class="wikitable wtp wtmono1"
|-
| Alt + V,H,H || afficher / masquer les fichiers et dossiers cachés
|-
| Win + Shift + ←/→ || passer une fenêtre d'un écran à l'autre
|-
| Win + P || gestion multi-écran (duplicate, extended)
|}
 
= Programmes exécutés au démarrage =
Lister les programmes : Task Manager Startup
* Pour l'utilisateur courant: {{boxx|%AppData%\Microsoft\Windows\Start Menu\Programs\Startup}}
* Pour tous les utilisateurs: {{boxx|C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup}}
* Dans le registre
** {{boxx|HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run}}
** {{boxx|HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run}}
* Task Manager → Startup
 
= Special folders =
* [[Astuces_Windows#Variables_d'environnement|Environment variables]]
{| class="wikitable wtp wtmono1"
! Path
! Description
|-
| %LocalAppData%\Programs || Current user programs folder
|-
| %AppData%\Microsoft\Windows\Start Menu\Programs || Current user start menu folder
|}


= Settings =
= Settings =
== [https://superuser.com/questions/88548/prevent-monitor-switching-when-closing-laptop-lid Prevent monitor switching off when closing laptop lid] ==
# {{boxx|Device Manager}} → {{boxx|System devices}} → {{boxx|ACPI lid}}
# right-click {{boxx|Properties}} → {{boxx|Driver}} tab → {{boxx|Update driver}}
# {{boxx|Browse my computer for driver software}} → {{boxx|Let me pick...}}
# Uncheck {{boxx|Show compatible hardware}}
# {{boxx|Manufacturer}} = {{boxx|Microsoft}}
# {{boxx|Model}} = {{boxx|Volume manager}}
# Restart the system
{{info | The system device is now named {{boxx|Volume manager}}}}
== [https://www.howtogeek.com/howto/15132/stop-your-mouse-from-waking-up-your-windows-7-computer/ Prevent wake up from hibernation] ==
# Control Panel → Hardware and Sound → Devices and Printers
# Right-click on device → Mouse settings → Hardware tab
# Select the device → Properties → Change settings button
# Power Management tab → uncheck "Allow this device to wake the computer"
== Sound and microphone ==
Windows → Sound settings → Sound Control Panel (up, right)
* Playback → select device → Properties → Enhancements: Headphone Virtualization, Loundness Equalization
* Recording → select device → Properties → Level → Microphone Boost
* Sounds: change system sounds
== [https://www.tenforums.com/tutorials/109302-turn-use-print-screen-key-launch-screen-snipping-windows-10-a.html Lancer le Snipping Tool lors de l'appuie sur PrintScreen] ==
== [https://www.tenforums.com/tutorials/109302-turn-use-print-screen-key-launch-screen-snipping-windows-10-a.html Lancer le Snipping Tool lors de l'appuie sur PrintScreen] ==
Settings → Ease of Access keyboard settings → Print Screen shortcut
Settings → Ease of Access keyboard settings → Print Screen shortcut
Ligne 21 : Ligne 81 :
== Couleur du pointeur de la sourie ==
== Couleur du pointeur de la sourie ==
Settings → Ease of Access → Mouse
Settings → Ease of Access → Mouse
== [https://winaero.com/blog/change-color-of-inactive-title-bars-in-windows-10/ Change color of inactive title bars] ==
{{boxx|regedit}} → {{boxx|HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM}} → new {{boxx|DWORD}} → name = {{boxx|AccentColorInactive}}<br>
Pour la valeur s'inspirer d'{{boxx|AccentColor}}


== Masquer les icônes de la barre des tâches ==
== Masquer les icônes de la barre des tâches ==
Ligne 29 : Ligne 93 :
* Select which icons appear on the taskbar
* Select which icons appear on the taskbar
* Turn system icons on or off
* Turn system icons on or off
== [https://www.howtogeek.com/222057/how-to-remove-the-folders-from-%E2%80%9Cthis-pc%E2%80%9D-on-windows-10 Remove "Folders" from "My PC"] ==
<filebox fn='Remove Folders From This PC 64-bit.reg' collapsed>
Windows Registry Editor Version 5.00
; Remove Desktop From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
; Remove Documents From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
; Remove Downloads From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
; Remove Music From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
; Remove Pictures From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
; Remove Videos From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
; Remove 3D Objects From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
</filebox>
<filebox fn='Restore Folders From This PC 64-bit.reg' collapsed>
Windows Registry Editor Version 5.00
; Restore Desktop To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
; Restore Documents To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
; Restore Downloads To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
; Restore Music To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
; Restore Pictures To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
; Restore Videos To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
; Restore 3D Objects From This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
</filebox>
== Change de language ==
* Main: Settings → Time & Language → Language
* Welcome screen: Control Panel → Clock and Region → Region → Administrative tab → Welcome screen → Copy settings


== Supprimer un clavier ==
== Supprimer un clavier ==
Ligne 37 : Ligne 178 :
* Short date = ddd d MMM
* Short date = ddd d MMM


== [http://winaero.com/blog/enable-numlock-logon-screen-windows-10/ Verrou numérique sur l'écran de connexion] ==
== [http://winaero.com/blog/enable-numlock-logon-screen-windows-10/ Verrou numérique sur l'écran de connexion (numlock)] ==
regedit → HKEY_USERS .DEFAULT Control Panel Keyboard → InitialKeyboardIndicators
regedit → {{boxx|HKEY_USERS\.DEFAULT\Control Panel\Keyboard}} {{boxx|InitialKeyboardIndicators}}
{| class="wikitable wtp wtmono2"  
{| class="wikitable wtp wtmono2"  
|-
|-
Ligne 49 : Ligne 190 :
Une fois le verrou numérique fonctionnel au démarrage, réactiver fast startup.}}
Une fois le verrou numérique fonctionnel au démarrage, réactiver fast startup.}}


== Clique molette pour fermer une fenêtre ==
* Natif dans la barre de tâche, puis sur l'aperçu.
* Installer [http://www.premeforwindows.com/ Preme] pour pouvoir le faire dans la barre de titre des fenêtres
= Performances =
== [http://www.thewindowsclub.com/disable-visual-effects-windows Optimiser les performances au détriment de l'apparence] ==
== [http://www.thewindowsclub.com/disable-visual-effects-windows Optimiser les performances au détriment de l'apparence] ==
Windows → performance → select Adjust the appearance and performance of Windows
* Adjust for best performance
Windows + x → System → Advanced system settings → Onglet Advanced → Performance → Settings
Windows + x → System → Advanced system settings → Onglet Advanced → Performance → Settings
* Show shadows under windows
* Show shadows under windows
* Smooth edges of screen fonts
* Smooth edges of screen fonts


== Ne pas afficher le contenu des fenêtres pendant leur déplacement ==
== Disable transparency effects ==
# Control Panel System and Security System Advanced system settings
# Settings Personalization Colors Transparency Effects = Off
# Advanced Performance Settings → Visual Effect → Show window contents while dragging
 
== [https://ss64.com/nt/syntax-nodrives.html Hide drives] ==
* {{boxx|regedit}} {{boxx|HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer}}
* New DWORD {{boxx|NoDrives}} = {{boxx|16}} decimal
{{info |1= A: = 1, B: = 2, C: = 4, D: = 8, E: = 16, additionner les valeurs pour masquer plusieurs lecteurs.}}
 
= Sécurité =
* [https://serverfault.com/questions/500963/windows-disable-remote-access-of-local-drive-even-by-domain-admin Disable remote access of local drive, even by domain admin]
 
== Users and Groups ==
<kode lang='ps'>
# add user to local admin group
net localgroup administrators /add user.name
 
# add domain user to local admin group
net localgroup administrators /add identity\user.name
 
# get the name of the current user
whoami


== Clique molette pour fermer une fenêtre ==
# create a new user
* Natif dans la barre de tâche, puis sur l'aperçu.
net user /add user.name
* Installer [http://www.premeforwindows.com/ Preme] pour pouvoir le faire dans la barre de titre des fenêtres
</kode>
{{info | Edit groups as an admin: {{boxx|Windows}} - type {{boxx|compmgmt}} - right click on {{boxx|Computer Management}} - {{boxx|Run as administrator}}}}


= Raccourcis clavier =
== Désactiver Remote Desktop ==
{| class="wikitable wtp wtmono1"
{| class="wikitable wtp"  
|-
|-
| Alt + V,H,H || afficher / masquer les fichiers et dossiers cachés
| Control Panel ||  
* {{boxx|Control Panel\System and Security\System}} → Remote Settings
* Menu → Settings → System → Remote Desktop
|-
|-
| Win + Shift + ←/→ || passer une fenêtre d'un écran à l'autre
| Remote Registry || Menu → Services → Remote Registry → Stop, Startup type: Disabled
|-
|-
| Win + P || gestion multi-écran (duplicate, extended)
| Service || Menu → Services → Remote Desktop Services: Concerne seulement le client
|}
|}


= Programmes exécutés au démarrage =
== [http://www.itworld.com/article/2778526/networking/disabling-the-hidden-administrative-shares.html Désactiver les partages administratifs C$] ==
Lister les programmes : Task Manager - Startup
{| class="wikitable wtp"
* Pour l'utilisateur courant:<br>
|-
{{boxx|%AppData%\Microsoft\Windows\Start Menu\Programs\Startup}}
| Service || Menu → Services → Server → Stop, Startup type: Disabled<br />
* Pour tous les utilisateurs:<br>
Arrête aussi le service Computer Browser
{{boxx|C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup}}
|-
* Dans le registre
| Registre || regedit → {{boxx|HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters}}
** {{boxx|HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run}}
* Poste de travail: New DWORD → AutoShareWks 0
** {{boxx|HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run}}
* Serveur: New DWORD → AutoShareServer → 0
* Task Manager Startup
Restart
 
= Recherche de fichiers =
Cliquer sur le lecteur dans lequel on veut faire la recherche.
{| class="wikitable wtp wtmono1"
|-
|-
| datemodified:‎30-‎Jan-‎19 18:30 || tous les fichiers et dossiers modifiés à cette date
| Settings || Computer Management → System Tools → Shared Folders → Shares → clique-droit sur C$ → Stop Sharing
|}
|}
<kode lang='powershell'>
# afficher les partages
net share
</kode>
== Interdire l'accès à d'autres comptes ==
* Windows + R → {{boxx|gpedit.msc}}
* Local Computer Policy → Computer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment
* Allow log on locally: {{boxx|Administrators, Backup Operators, Guest, Users, Window Manager\Window Manager Group}}
* Deny log on locally: {{boxx|Guest}}
== Se connecter sans mot de passe ==
# Windows + r → netplwiz
# Décocher « Users must enter a user name and a password ... »


= Windows Credential Manager =
== Windows Credential Manager ==
<kode lang='powershell'>
<kode lang='powershell'>
# ajouter un Generic Credential
# ajouter un Generic Credential
Ligne 108 : Ligne 288 :
|}
|}


= Piner un script dans le menu =
= Réseau =
# Ajouter un raccourci vers le script dans {{boxx|%appdata%\Microsoft\Windows\Start Menu\Programs}}
== Clear dns cache ==
# Aller dans le menu rechercher le script → clique-droit sur le script → Pin to start
<kode lang='ps'>
Pour rendre un raccourci vers un script PowerShell exécutable:
Clear-DnsClientCache
ipconfig /flushdns
</kode>
 
== [https://www.pcworld.com/article/3143122/windows/how-to-find-saved-wi-fi-passwords-on-your-windows-10-pc.html Récupérer la clé wifi] ==
<kode lang='powershell'>
# récupérer la liste des profils
netsh wlan show profile
 
# afficher le profile et la clé
netsh wlan show profile "xxx" key=clear
</kode>
 
== [https://social.technet.microsoft.com/Forums/en-US/261392a2-3914-4518-acb4-065a0a635f58/build-10049-breaks-openvpn-there-are-no-tapwindows-adapters-on-this-system?forum=WinPreview2014General Client VPN] ==
<pre>There are no TAP-Windows adapters on this system.
You should be able to create a TAP-Windows adapter by going to
Start -> All Programs -> TAP-Windows -> Utilities -> Add a new TAP-Windows virtual ethernet adapter.</pre>
# Regedit → HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\000x
# Choisir le 000x où <tt>ProductName = TAP-Windows Adapter V9</tt>
# Mettre <tt>ComponentId = tap0901</tt>
# Network connections Disable puis Enable le TAP-Windows Adapter V9
 
= Route =
== [https://ss64.com/nt/route.html route.exe] ==
<kode lang='dos'>
<kode lang='dos'>
powershell.exe -command "& 'C:\A path with spaces\MyScript.ps1' -MyArguments blah"
REM list ipv4 routes
route print -4
 
REM ROUTE DELETE [destination_host] [MASK subnet_mask_value] [gateway] [METRIC metric] [IF interface_no.]
route delete x.x.x.x mask 255.255.255.0 metric 1
 
REM ROUTE [-p] ADD [destination_host] [MASK subnet_mask_value] [gateway] [METRIC metric] [IF interface_no.]
route add x.x.x.x mask 255.255.255.0 y.y.y.y
</kode>
 
== powershell ==
<kode lang='ps'>
# list ipv4 routes
Get-NetRoute -AddressFamily IPv4
 
Remove-NetRoute -DestinationPrefix 192.168.0.0/24 -InterfaceIndex 1 -NextHop 0.0.0.0 -RouteMetric 1 -PolicyStore ActiveStore -Confirm:$false
 
New-NetRoute -DestinationPrefix 192.168.0.0/24 -InterfaceIndex 1 -NextHop 0.0.0.0 -RouteMetric 1 -PolicyStore ActiveStore
</kode>
</kode>
Ou bien [[PowerShell#Associer_les_fichiers_.2A.ps1_.C3.A0_PowerShell|associer les fichiers *.ps1 à PowerShell]].


= [https://www.digitalcitizen.life/how-make-windows-10s-file-explorer-start-any-location-you-want Dossier de démarrage par défaut de file explorer] =
* [https://docs.microsoft.com/en-us/powershell/module/nettcpip/get-netroute?view=win10-ps Get-NetRoute]
# clique-droit sur le dossier à mettre par défaut → Send To → Desktop
* [https://docs.microsoft.com/en-us/powershell/module/nettcpip/remove-netroute?view=win10-ps Remove-NetRoute]
# copier le raccourci créé sur le bureau vers {{boxx|%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar}}
* [https://docs.microsoft.com/en-us/powershell/module/nettcpip/new-netroute?view=win10-ps New-NetRoute]
# changer l'icone du raccourci pour la même que celle de {{boxx|File Explorer}} (clique-droit → Properties → Change Icon)
# supprimer le raccourci {{boxx|File Explorer}} du dossier en cours et renommer le nouveau raccourci {{boxx|File Explorer}}
# fermer file explorer


= Task Scheduler =
= Task Scheduler =
Ligne 143 : Ligne 359 :
|}
|}


= [https://winaero.com/blog/move-pictures-folder-windows-10/ Changer l'emplacement de Pictures] =
= [https://www.windowscentral.com/how-add-your-full-name-local-account-windows-10 Change user fullname] =
# Explorer → %userprofile% → clique-droit sur Pctures Properties
<kode lang='ps'>
# Location → Move → choisir un nouveau dossier vide
Set-LocalUser -Name MyUserName -Fullname "My User Name (-_-)"
</kode>
 
* Windows → {{boxx|netplwiz}}
* Select an account → click on the Properties button
 
= Recherche de fichiers =
Cliquer sur le lecteur dans lequel on veut faire la recherche.
{| class="wikitable wtp wtmono1"
|-
| datemodified:‎30-‎Jan-‎19 18:30 || tous les fichiers et dossiers modifiés à cette date
|}
 
= Piner un script dans le menu =
# Ajouter un raccourci vers le script dans {{boxx|%appdata%\Microsoft\Windows\Start Menu\Programs}}
# Aller dans le menu → rechercher le script → clique-droit sur le script Pin to start
Pour rendre un raccourci vers un script PowerShell exécutable:
<kode lang='dos'>
powershell.exe -command "& 'C:\A path with spaces\MyScript.ps1' -MyArguments blah"
</kode>
Ou bien [[PowerShell#Associer_les_fichiers_.2A.ps1_.C3.A0_PowerShell|associer les fichiers *.ps1 à PowerShell]].


= Police floue =
= Police floue =
Ligne 157 : Ligne 393 :
# {{boxx|HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers}}
# {{boxx|HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers}}
# Valeur chaîne: {{boxx|C:\chemin\app.exe}} - {{boxx|HIGHDPIAWARE}}
# Valeur chaîne: {{boxx|C:\chemin\app.exe}} - {{boxx|HIGHDPIAWARE}}
= Désinstaller une application du store =
Menu → Settings → Apps → séléctionner l'application → Uninstall


= [http://www.thewindowsclub.com/show-hide-a-drive-in-windows Masquer un lecteur] =
= [http://www.thewindowsclub.com/show-hide-a-drive-in-windows Masquer un lecteur] =
Ligne 167 : Ligne 400 :
= Sourie Evoluent =
= Sourie Evoluent =
Problème de défilement avec la sourie: Evoluent Mouse Manager → Wheel → décocher Accelerated scrolling
Problème de défilement avec la sourie: Evoluent Mouse Manager → Wheel → décocher Accelerated scrolling
= [https://www.digitalcitizen.life/how-make-windows-10s-file-explorer-start-any-location-you-want Dossier de démarrage par défaut de file explorer] =
# clique-droit sur le dossier à mettre par défaut → Send To → Desktop
# copier le raccourci créé sur le bureau vers {{boxx|%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar}}
# changer l'icone du raccourci pour la même que celle de {{boxx|File Explorer}} (clique-droit → Properties → Change Icon)
# supprimer le raccourci {{boxx|File Explorer}} du dossier en cours et renommer le nouveau raccourci {{boxx|File Explorer}}
# fermer file explorer


= [http://www.windowscentral.com/how-manage-file-storage-windows-10 Déplacer les dossier Documents, Music, Pictures, Videos, Downloads sur un autre disque] =
= [http://www.windowscentral.com/how-manage-file-storage-windows-10 Déplacer les dossier Documents, Music, Pictures, Videos, Downloads sur un autre disque] =
Ligne 174 : Ligne 414 :
This PC → clique-droit sur Documents → Properties → Location
This PC → clique-droit sur Documents → Properties → Location


= Desinstaller des Apps =
= [https://winaero.com/blog/move-pictures-folder-windows-10/ Changer l'emplacement de Pictures] =
Windows → Settings → System → Apps & features
# Explorer %userprofile% clique-droit sur Pctures Properties
 
# Location Move choisir un nouveau dossier vide
= [https://4sysops.com/archives/stop-automatic-updates-in-windows-10-rtm-build-10240/ Windows update] =
* Windows Settings Update & security
* Windows + r → gpedit.msc Computer Configuration → Administrative Templates → Windows Components → Windows Update
* Windows services Windows Update
 
= Gestion des utilisateurs et des groupes =
Windows + r → lusrmgr.msc


= Indexation =
= Indexation =
Ligne 195 : Ligne 428 :
* Pour chaque disque monté → Propriétés → décocher Autoriser l'indexation du contenu des fichiers ...
* Pour chaque disque monté → Propriétés → décocher Autoriser l'indexation du contenu des fichiers ...


= Sécurité =
= [https://superuser.com/questions/1017764/how-can-i-shrink-a-windows-10-partition Réduire la taille d'une partition] =
* [https://serverfault.com/questions/500963/windows-disable-remote-access-of-local-drive-even-by-domain-admin Disable remote access of local drive, even by domain admin]
<kode lang='ps'>
# disable hibernation
powercfg /h off
 
# disable pagefile
wmic computersystem set AutomaticManagedPagefile=False
wmic pagefileset where name="C:\\pagefile.sys" delete
 
# disable system restore
Disable-ComputerRestore -Drive C:
 
# restart
 
# defrag
Optimize-Volume -DriveLetter C -ReTrim -Defrag -SlabConsolidate -TierOptimize -NormalPriority
 
# Get the remaining size
(Get-Volume C).SizeRemaining /1GB
 
# Resize partition
$part = Get-Partition -DriveLetter C
$part | Resize-Partition -Size 375GB
 
# Get the remaining size again
(Get-Volume C).SizeRemaining /1GB
 
# re-enable pagefile
wmic pagefileset create name="C:\\pagefile.sys"
wmic computersystem set AutomaticManagedPagefile=True
 
# re-enable hibernation
powercfg /h on
 
# re-enable system restore
Enable-ComputerRestore -Drive C:
 
# restart
</kode>
 
= Installer le framework 3.5 =
Control Panel → Uninstall a program → Turn Windows features on or off
 
= Désinstaller une application du store =
Menu → Settings → Apps → séléctionner l'application → Uninstall
 
= Désinstaller des Apps =
Windows → Settings → System → Apps & features
 
= [https://4sysops.com/archives/stop-automatic-updates-in-windows-10-rtm-build-10240/ Windows update] =
* Windows → Settings → Update & security
* Windows + r → gpedit.msc → Computer Configuration → Administrative Templates → Windows Components → Windows Update
* Windows → services → Windows Update


== Désactiver Remote Desktop ==
= Windows Editions =
{| class="wikitable wtp"  
{| class="wikitable wtp"  
! Edition
! Description
|-
|-
| Control Panel ||  
| consumer || OEM/Retail/USB Media installations
* {{boxx|Control Panel\System and Security\System}} → Remote Settings
* Menu → Settings → System → Remote Desktop
|-
|-
| Remote Registry || Menu → Services → Remote Registry → Stop, Startup type: Disabled
| business || Volume Media installations
|-
|-
| Service || Menu → Services → Remote Desktop Services: Concerne seulement le client
| retail || activation of Windows on 1 PC
|}
 
== [http://www.itworld.com/article/2778526/networking/disabling-the-hidden-administrative-shares.html Désactiver les partages administratifs C$] ==
{| class="wikitable wtp"
|-
|-
| Service || Menu → Services → Server → Stop, Startup type: Disabled<br />
| multiple activation || activation of Windows on mltiple PCs
Arrête aussi le service Computer Browser
|-
|-
| Registre || regedit → {{boxx|HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters}}
| N / KN || no Windows Media Player, Groove Music, Movies & TV, Voice Recorder, or Skype. N is avaialble in Europe and KN in Korea.
* Poste de travail: New DWORD → AutoShareWks → 0
* Serveur: New DWORD → AutoShareServer → 0
Restart
|-
|-
| Settings || Computer Management → System Tools → Shared Folders → Shares → clique-droit sur C$ → Stop Sharing
| [https://www.howtogeek.com/321736/what-is-windows-10-pro-for-workstations-and-how-is-it-different/ Pro for Workstations] || for high-end PC, supports 4 CPUs, 6 TB of RAM, NVDIMM-N, ReFS, SMB Direct
|}
|}
<kode lang='powershell'>
# afficher les partages
net share
</kode>
== Interdire l'accès à d'autres comptes ==
* Windows + R → {{boxx|gpedit.msc}}
* Local Computer Policy → Computer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment
* Allow log on locally: {{boxx|Administrators, Backup Operators, Guest, Users, Window Manager\Window Manager Group}}
* Deny log on locally: {{boxx|Guest}}


== Se connecter sans mot de passe ==
= Créer une clé usb bootable =
# Windows + r → netplwiz
Utiliser le logiciel [https://rufus.ie/ Rufus] pour créer une clé usb bootable à partir d'un fichier iso.<br>
# Décocher « Users must enter a user name and a password ... »
Cette clé usb bootable ne fonctionnera que si l'option Security Boot du BIOS est déactivée.


= Installer le framework 3.5 =
= [https://rivernetcomputers.com/5-ways-windows-10-boot-options-menu/ Windows 10 Boot Options Menu] =
Control Panel → Uninstall a program → Turn Windows features on or off
* Restart while pressing the {{boxx|Shift}} key
* <syntaxhighlight lang='msdos' inline>shutdown.exe /r /o</syntaxhighlight>
* {{boxx|F11}}


= [https://www.pcworld.com/article/3143122/windows/how-to-find-saved-wi-fi-passwords-on-your-windows-10-pc.html Récupérer la clé wifi] =
= Problèmes =
<kode lang='powershell'>
== [https://www.howtogeek.com/323390/how-to-fix-windows-and-linux-showing-different-times-when-dual-booting Horloge n'est pas à l'heure] ==
# récupérer la liste des profils
Dans le cas d'un dual boot avec Linux, il peut être nécessaire de passer Windows en {{boxx|RealTimeIsUniversal}}:<br>
netsh wlan show profile
* {{boxx|regedit}} {{boxx|Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation}}
 
* New → DWORD → {{boxx|RealTimeIsUniversal}} = 1
# afficher le profile et la clé
netsh wlan show profile "xxx" key=clear
</kode>
 
= [https://social.technet.microsoft.com/Forums/en-US/261392a2-3914-4518-acb4-065a0a635f58/build-10049-breaks-openvpn-there-are-no-tapwindows-adapters-on-this-system?forum=WinPreview2014General Client VPN] =
<pre>There are no TAP-Windows adapters on this system.
You should be able to create a TAP-Windows adapter by going to
Start -> All Programs -> TAP-Windows -> Utilities -> Add a new TAP-Windows virtual ethernet adapter.</pre>
# Regedit → HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\000x
# Choisir le 000x où <tt>ProductName = TAP-Windows Adapter V9</tt>
# Mettre <tt>ComponentId = tap0901</tt>
# Network connections → Disable puis Enable le TAP-Windows Adapter V9


= [https://support.microsoft.com/fr-fr/kb/929826 Activation: Error code 0x8007007B] =
== [https://support.microsoft.com/fr-fr/kb/929826 Activation: Error code 0x8007007B] ==
<kode lang=dos>
<kode lang=dos>
REM dans une console avec les droits administrateur
REM dans une console avec les droits administrateur

Dernière version du 4 avril 2024 à 07:40

Astuces

Windows + R commands

Command Description
lusrmgr.msc local user and group management
msinfo32 system information
winver Windows build version

Raccourcis clavier

Alt + V,H,H afficher / masquer les fichiers et dossiers cachés
Win + Shift + ←/→ passer une fenêtre d'un écran à l'autre
Win + P gestion multi-écran (duplicate, extended)

Programmes exécutés au démarrage

Lister les programmes : Task Manager → Startup

  • Pour l'utilisateur courant: %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
  • Pour tous les utilisateurs: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
  • Dans le registre
    • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
  • Task Manager → Startup

Special folders

Path Description
%LocalAppData%\Programs Current user programs folder
%AppData%\Microsoft\Windows\Start Menu\Programs Current user start menu folder

Settings

Prevent monitor switching off when closing laptop lid

  1. Device ManagerSystem devicesACPI lid
  2. right-click PropertiesDriver tab → Update driver
  3. Browse my computer for driver softwareLet me pick...
  4. Uncheck Show compatible hardware
  5. Manufacturer = Microsoft
  6. Model = Volume manager
  7. Restart the system
The system device is now named Volume manager

Prevent wake up from hibernation

  1. Control Panel → Hardware and Sound → Devices and Printers
  2. Right-click on device → Mouse settings → Hardware tab
  3. Select the device → Properties → Change settings button
  4. Power Management tab → uncheck "Allow this device to wake the computer"

Sound and microphone

Windows → Sound settings → Sound Control Panel (up, right)

  • Playback → select device → Properties → Enhancements: Headphone Virtualization, Loundness Equalization
  • Recording → select device → Properties → Level → Microphone Boost
  • Sounds: change system sounds

Lancer le Snipping Tool lors de l'appuie sur PrintScreen

Settings → Ease of Access keyboard settings → Print Screen shortcut

Modifier le dpi

Settings → System → Display → Change the size of text

Désactiver les sons Windows

Control Panel → Hardware and Sound → Sound → Change system sounds → Sound Scheme: No Sounds

Couleur du pointeur de la sourie

Settings → Ease of Access → Mouse

Change color of inactive title bars

regeditHKEY_CURRENT_USER\Software\Microsoft\Windows\DWM → new DWORD → name = AccentColorInactive
Pour la valeur s'inspirer d'AccentColor

Masquer les icônes de la barre des tâches

Settings → Personalization → Taskbar → Notification area → Select which icons appear on the taskbar

Old

Settings → System → Notifications & actions

  • Select which icons appear on the taskbar
  • Turn system icons on or off

Remove "Folders" from "My PC"

Remove Folders From This PC 64-bit.reg
Windows Registry Editor Version 5.00

; Remove Desktop From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
; Remove Documents From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
; Remove Downloads From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
; Remove Music From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
; Remove Pictures From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
; Remove Videos From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
; Remove 3D Objects From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
Restore Folders From This PC 64-bit.reg
Windows Registry Editor Version 5.00

; Restore Desktop To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
; Restore Documents To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
; Restore Downloads To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
; Restore Music To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
; Restore Pictures To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
; Restore Videos To This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
; Restore 3D Objects From This PC
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]

Change de language

  • Main: Settings → Time & Language → Language
  • Welcome screen: Control Panel → Clock and Region → Region → Administrative tab → Welcome screen → Copy settings

Supprimer un clavier

Settings → Time & Language → Language → sélectionner une langue → Options → sélectionner un keyboard → Remove

Changer format du Short date

Control panel → Clock, Language, and Region → Language → Change date, time, or number formats

  • Short date = ddd d MMM

Verrou numérique sur l'écran de connexion (numlock)

regedit → HKEY_USERS\.DEFAULT\Control Panel\KeyboardInitialKeyboardIndicators

ancienne valeur 2147483648
nouvelle valeur 2147483650
La fonctionnalité Fast startup peut écraser la valeur InitialKeyboardIndicators.

Désactiver fast startup: Power Options → Choose what the power buttons do → décocher fast startup

Une fois le verrou numérique fonctionnel au démarrage, réactiver fast startup.

Clique molette pour fermer une fenêtre

  • Natif dans la barre de tâche, puis sur l'aperçu.
  • Installer Preme pour pouvoir le faire dans la barre de titre des fenêtres

Performances

Optimiser les performances au détriment de l'apparence

Windows → performance → select Adjust the appearance and performance of Windows

  • Adjust for best performance

Windows + x → System → Advanced system settings → Onglet Advanced → Performance → Settings

  • Show shadows under windows
  • Smooth edges of screen fonts

Disable transparency effects

  1. Settings → Personalization → Colors → Transparency Effects = Off

Hide drives

  • regeditHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  • New DWORD → NoDrives = 16 decimal
A: = 1, B: = 2, C: = 4, D: = 8, E: = 16, additionner les valeurs pour masquer plusieurs lecteurs.

Sécurité

Users and Groups

Ps.svg
# add user to local admin group
net localgroup administrators /add user.name

# add domain user to local admin group
net localgroup administrators /add identity\user.name

# get the name of the current user
whoami

# create a new user
net user /add user.name
Edit groups as an admin: Windows - type compmgmt - right click on Computer Management - Run as administrator

Désactiver Remote Desktop

Control Panel
  • Control Panel\System and Security\System → Remote Settings
  • Menu → Settings → System → Remote Desktop
Remote Registry Menu → Services → Remote Registry → Stop, Startup type: Disabled
Service Menu → Services → Remote Desktop Services: Concerne seulement le client

Désactiver les partages administratifs C$

Service Menu → Services → Server → Stop, Startup type: Disabled

Arrête aussi le service Computer Browser

Registre regedit → HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
  • Poste de travail: New DWORD → AutoShareWks → 0
  • Serveur: New DWORD → AutoShareServer → 0

Restart

Settings Computer Management → System Tools → Shared Folders → Shares → clique-droit sur C$ → Stop Sharing
Powershell.svg
# afficher les partages
net share

Interdire l'accès à d'autres comptes

  • Windows + R → gpedit.msc
  • Local Computer Policy → Computer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment
  • Allow log on locally: Administrators, Backup Operators, Guest, Users, Window Manager\Window Manager Group
  • Deny log on locally: Guest

Se connecter sans mot de passe

  1. Windows + r → netplwiz
  2. Décocher « Users must enter a user name and a password ... »

Windows Credential Manager

Powershell.svg
# ajouter un Generic Credential
cmdkey /generic:targetname /user:username /pass:password
# avec demande du password
cmdkey /generic:targetname /user:username /pass

# lister les Credentials
cmdkey /list:targetname*
Kinds of Credentials
Domain Credentials utilisé par l'OS
Generic Credentials utilisé par les applications

Réseau

Clear dns cache

Ps.svg
Clear-DnsClientCache
ipconfig /flushdns

Récupérer la clé wifi

Powershell.svg
# récupérer la liste des profils
netsh wlan show profile

# afficher le profile et la clé
netsh wlan show profile "xxx" key=clear

Client VPN

There are no TAP-Windows adapters on this system.
You should be able to create a TAP-Windows adapter by going to 
Start -> All Programs -> TAP-Windows -> Utilities -> Add a new TAP-Windows virtual ethernet adapter.
  1. Regedit → HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\000x
  2. Choisir le 000x où ProductName = TAP-Windows Adapter V9
  3. Mettre ComponentId = tap0901
  4. Network connections → Disable puis Enable le TAP-Windows Adapter V9

Route

route.exe

Dos.svg
REM list ipv4 routes
route print -4

REM ROUTE DELETE [destination_host] [MASK subnet_mask_value] [gateway] [METRIC metric] [IF interface_no.] 
route delete x.x.x.x mask 255.255.255.0 metric 1

REM ROUTE [-p] ADD [destination_host] [MASK subnet_mask_value] [gateway] [METRIC metric] [IF interface_no.]
route add x.x.x.x mask 255.255.255.0 y.y.y.y

powershell

Ps.svg
# list ipv4 routes
Get-NetRoute -AddressFamily IPv4

Remove-NetRoute -DestinationPrefix 192.168.0.0/24 -InterfaceIndex 1 -NextHop 0.0.0.0 -RouteMetric 1 -PolicyStore ActiveStore -Confirm:$false

New-NetRoute -DestinationPrefix 192.168.0.0/24 -InterfaceIndex 1 -NextHop 0.0.0.0 -RouteMetric 1 -PolicyStore ActiveStore

Task Scheduler

Lancer un script powershell

Program/script C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Add arguments C:\Folder\Script.ps1 Arg1

Wake up after hibernation event

Log Microsoft-Windows-Kernel-Power/Thermal-Operational
Source Kernel-Power
Event ID 107

Change user fullname

Ps.svg
Set-LocalUser -Name MyUserName -Fullname "My User Name (-_-)"
  • Windows → netplwiz
  • Select an account → click on the Properties button

Recherche de fichiers

Cliquer sur le lecteur dans lequel on veut faire la recherche.

datemodified:‎30-‎Jan-‎19 18:30 tous les fichiers et dossiers modifiés à cette date

Piner un script dans le menu

  1. Ajouter un raccourci vers le script dans %appdata%\Microsoft\Windows\Start Menu\Programs
  2. Aller dans le menu → rechercher le script → clique-droit sur le script → Pin to start

Pour rendre un raccourci vers un script PowerShell exécutable:

Dos.svg
powershell.exe -command "& 'C:\A path with spaces\MyScript.ps1' -MyArguments blah"

Ou bien associer les fichiers *.ps1 à PowerShell.

Police floue

Fixer pour toutes les applications

Settings → System → Display → Advanced scaling settings → Let Windows try to fix apps so they're not blurry

Fixer pour une application

Clique-droit sur le raccourci → Properties → Onglet Compatibility → Disable display scaling on high DPI settings
Si l'onglet Compatibility n'est pas disponible:

  1. regedit
  2. HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
  3. Valeur chaîne: C:\chemin\app.exe - HIGHDPIAWARE

Masquer un lecteur

  1. Computer Management → Storage → Disk Management
  2. Sélectionner un lecteur → clique-droit → Change Letter and Paths → Remove

Sourie Evoluent

Problème de défilement avec la sourie: Evoluent Mouse Manager → Wheel → décocher Accelerated scrolling

Dossier de démarrage par défaut de file explorer

  1. clique-droit sur le dossier à mettre par défaut → Send To → Desktop
  2. copier le raccourci créé sur le bureau vers %APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
  3. changer l'icone du raccourci pour la même que celle de File Explorer (clique-droit → Properties → Change Icon)
  4. supprimer le raccourci File Explorer du dossier en cours et renommer le nouveau raccourci File Explorer
  5. fermer file explorer

Déplacer les dossier Documents, Music, Pictures, Videos, Downloads sur un autre disque

Définir le dique sur lequel les futurs données seront sauvegardées:
Settings → SYSTEM → Storage → Save locations
Changer l'emplacement des dossiers et copier leurs données
This PC → clique-droit sur Documents → Properties → Location

Changer l'emplacement de Pictures

  1. Explorer → %userprofile% → clique-droit sur Pctures → Properties
  2. Location → Move → choisir un nouveau dossier vide

Indexation

Windows → Indexing Options

  • Modify → choix des dossier à indexer
  • Advanced → Rebuild → reconstruire l'index
Le dossier %UserProfile%\AppData étant exclut par défaut, inclure des sous-dossier comme %AppData%\Microsoft\Windows\Start Menu ne fonctionne pas. lien

Désactiver l'indexation

  • Menu → services.msc → Arrêter et désactiver le service Windows Search
  • Pour chaque disque monté → Propriétés → décocher Autoriser l'indexation du contenu des fichiers ...

Réduire la taille d'une partition

Ps.svg
# disable hibernation
powercfg /h off

# disable pagefile
wmic computersystem set AutomaticManagedPagefile=False
wmic pagefileset where name="C:\\pagefile.sys" delete

# disable system restore
Disable-ComputerRestore -Drive C:

# restart

# defrag
Optimize-Volume -DriveLetter C -ReTrim -Defrag -SlabConsolidate -TierOptimize -NormalPriority

# Get the remaining size
(Get-Volume C).SizeRemaining /1GB

# Resize partition
$part = Get-Partition -DriveLetter C
$part | Resize-Partition -Size 375GB

# Get the remaining size again
(Get-Volume C).SizeRemaining /1GB

# re-enable pagefile
wmic pagefileset create name="C:\\pagefile.sys"
wmic computersystem set AutomaticManagedPagefile=True

# re-enable hibernation
powercfg /h on

# re-enable system restore
Enable-ComputerRestore -Drive C:

# restart

Installer le framework 3.5

Control Panel → Uninstall a program → Turn Windows features on or off

Désinstaller une application du store

Menu → Settings → Apps → séléctionner l'application → Uninstall

Désinstaller des Apps

Windows → Settings → System → Apps & features

Windows update

  • Windows → Settings → Update & security
  • Windows + r → gpedit.msc → Computer Configuration → Administrative Templates → Windows Components → Windows Update
  • Windows → services → Windows Update

Windows Editions

Edition Description
consumer OEM/Retail/USB Media installations
business Volume Media installations
retail activation of Windows on 1 PC
multiple activation activation of Windows on mltiple PCs
N / KN no Windows Media Player, Groove Music, Movies & TV, Voice Recorder, or Skype. N is avaialble in Europe and KN in Korea.
Pro for Workstations for high-end PC, supports 4 CPUs, 6 TB of RAM, NVDIMM-N, ReFS, SMB Direct

Créer une clé usb bootable

Utiliser le logiciel Rufus pour créer une clé usb bootable à partir d'un fichier iso.
Cette clé usb bootable ne fonctionnera que si l'option Security Boot du BIOS est déactivée.

Windows 10 Boot Options Menu

  • Restart while pressing the Shift key
  • shutdown.exe /r /o
  • F11

Problèmes

Horloge n'est pas à l'heure

Dans le cas d'un dual boot avec Linux, il peut être nécessaire de passer Windows en RealTimeIsUniversal:

  • regeditComputer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
  • New → DWORD → RealTimeIsUniversal = 1

Activation: Error code 0x8007007B

Dos.svg
REM dans une console avec les droits administrateur
slmgr -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (clé windows)

OLD

Désactiver Cortana

  1. Windows → taper cortana → Paramètres de Cortanan et Rechercher
  2. Cliquer sur l'engrenage

Dual screens et taskbar

clique-droit sur la barre des taches → Taskbar settings (ou Settings → Personalization → Taskbar)

  • Show taskbar on all displays
  • Show taskbar buttons on: Taskbar where window is open

Dark

Activer le thème dark

Seules les applications universelles (settings, calc) et explorer utiliseront le thème dark.

Settings → Personalization → Colors → More Options → Choose your default app mode → Dark

Ancienne méthode

  1. regeditHKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize
  2. DWORDAppsUseLightTheme = 0
  3. sign out

Colorer les barres de titre des fenêtres

Settings - Personalization - Colors - More Options - cocher Title bars

Ancienne méthode

  1. C:\Windows\Resources\Themes
  2. Dupliquer le fichier aero.theme et le renommer en color.theme
  3. Éditer color.theme → [VisualStyles]
    1. Remplacer Path=%ResourceDir%\Themes\Aero\Aero.msstyles
    2. Par Path=%ResourceDir%\Themes\color\color.msstyles
  4. Dupliquer le dossier aero et le renommer color
  5. Dans le dossier color, renommer aero.msstyles en color.msstyles
  6. Dans le dossier en-US, renommer aero.msstyles.mui en color.msstyles.mui
  7. Double-cliquer sur fichier color.theme pour activer le theme