Komut satırına erişimi engelle: kayıt defteri değeri DisableCMDKullanıcıHKCU\Software\Policies\Microsoft\Windows\System

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

Kayıt defteri

DisableCMD

REG_DWORDKullanıcı
Etkin değeri
Seçenek değerine bağlıdır
Öğe
Komut satırı kod dosyası işletilmesi de devre dışı bırakılsın mı?
Seçenekler
MaddeSaklanan değer
Evet1
Hayır2
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]

; Seçenekler (yalnızca birini kullanın)
; Evet
"DisableCMD"=dword:00000001
; Hayır
"DisableCMD"=dword:00000002
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Evet
reg add "HKCU\Software\Policies\Microsoft\Windows\System" /v "DisableCMD" /t REG_DWORD /d 1 /f
:: Hayır
reg add "HKCU\Software\Policies\Microsoft\Windows\System" /v "DisableCMD" /t REG_DWORD /d 2 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\System' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Evet
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\System' -Name 'DisableCMD' -PropertyType DWord -Value 1 -Force | Out-Null
# Hayır
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\System' -Name 'DisableCMD' -PropertyType DWord -Value 2 -Force | Out-Null