Console de récupération : autoriser la copie de disquettes et l’accès à tous les lecteurs et dossiers : valeur de Registre SetCommandOrdinateurHKLM\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole

Catégorie
Paramètres de sécurité › Stratégies locales › Options de sécurité
Étendue
Configuration ordinateur
Source
Windows 11 (version 26H2 · 26300.9457)

Registre

SetCommand

REG_DWORDOrdinateur
Valeur si activée
1
Valeur si désactivée
0
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole]

; Options (en utiliser une seule)
; Activé
"SetCommand"=dword:00000001
; Désactivé
"SetCommand"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole" /v "SetCommand" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole" /v "SetCommand" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole' -Name 'SetCommand' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole' -Name 'SetCommand' -PropertyType DWord -Value 0 -Force | Out-Null