Oturum kapatma komut dosyaları çalışırken, bunların içindeki yönergeleri görüntüle: kayıt defteri değeri HideLogoffScriptsKullanıcıHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System

İlke Kimliği
Run_Logoff_Script_Visible
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 › Komut Dosyaları

Kayıt defteri

HideLogoffScripts

REG_DWORDKullanıcı
Etkin değeri
0
Devre dışı değeri
1
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

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

; Seçenekler (yalnızca birini kullanın)
; Etkin
"HideLogoffScripts"=dword:00000000
; Devre Dışı
"HideLogoffScripts"=dword:00000001
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Etkin
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "HideLogoffScripts" /t REG_DWORD /d 0 /f
:: Devre Dışı
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "HideLogoffScripts" /t REG_DWORD /d 1 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Etkin
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'HideLogoffScripts' -PropertyType DWord -Value 0 -Force | Out-Null
# Devre Dışı
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'HideLogoffScripts' -PropertyType DWord -Value 1 -Force | Out-Null