Sudo komutunun davranışını yapılandırma: kayıt defteri değeri EnabledBilgisayarHKLM\Software\Policies\Microsoft\Windows\Sudo

İlke Kimliği
EnableSudo
Kapsam
Bilgisayar Yapılandırması
Desteklenen işletim sistemleri
En az Windows 11
Kaynak
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (sürüm 1.0)
Kategori
Sistem

Kayıt defteri

Enabled

REG_DWORDBilgisayar
Etkin değeri
Seçenek değerine bağlıdır
Öğe
İzin verilen en fazla sudo modu
Seçenekler
MaddeSaklanan değer
Devre Dışı0
Yeni pencereyi zorla1
Girişi devre dışı bırak2
Normal3
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Sudo]

; Seçenekler (yalnızca birini kullanın)
; Devre Dışı
"Enabled"=dword:00000000
; Yeni pencereyi zorla
"Enabled"=dword:00000001
; Girişi devre dışı bırak
"Enabled"=dword:00000002
; Normal
"Enabled"=dword:00000003
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Devre Dışı
reg add "HKLM\Software\Policies\Microsoft\Windows\Sudo" /v "Enabled" /t REG_DWORD /d 0 /f
:: Yeni pencereyi zorla
reg add "HKLM\Software\Policies\Microsoft\Windows\Sudo" /v "Enabled" /t REG_DWORD /d 1 /f
:: Girişi devre dışı bırak
reg add "HKLM\Software\Policies\Microsoft\Windows\Sudo" /v "Enabled" /t REG_DWORD /d 2 /f
:: Normal
reg add "HKLM\Software\Policies\Microsoft\Windows\Sudo" /v "Enabled" /t REG_DWORD /d 3 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Sudo' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Devre Dışı
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Sudo' -Name 'Enabled' -PropertyType DWord -Value 0 -Force | Out-Null
# Yeni pencereyi zorla
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Sudo' -Name 'Enabled' -PropertyType DWord -Value 1 -Force | Out-Null
# Girişi devre dışı bırak
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Sudo' -Name 'Enabled' -PropertyType DWord -Value 2 -Force | Out-Null
# Normal
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Sudo' -Name 'Enabled' -PropertyType DWord -Value 3 -Force | Out-Null