Kullanıcı oturum açarken ve kaparken önce Windows PowerShell komut dosyalarını çalıştır: kayıt defteri değeri RunUserPSScriptsFirstKullanıcıHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System
- İlke Kimliği
- Run_User_PS_Scripts_First
- Kapsam
- Bilgisayar Yapılandırması, Kullanıcı Yapılandırması
- Desteklenen işletim sistemleri
- En az Windows Server 2008 R2 veya Windows 7
- Kaynak
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (sürüm 1.0)
- Kategori
- Sistem › Komut Dosyaları
Kayıt defteri
RunUserPSScriptsFirst
REG_DWORDKullanıcıBilgisayar…\Software\Microsoft\Windows\CurrentVersion\Policies\SystemHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System Geçerli anahtar
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
- Etkin değeri
- 1
- Devre dışı değeri
- 0
.reg · CMD · PowerShell ile uygula
KullanıcıHesap başına ayar
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] ; Seçenekler (yalnızca birini kullanın) ; Etkin "RunUserPSScriptsFirst"=dword:00000001 ; Devre Dışı "RunUserPSScriptsFirst"=dword:00000000
CMD
:: Seçenekler (yalnızca birini kullanın) :: Etkin reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "RunUserPSScriptsFirst" /t REG_DWORD /d 1 /f :: Devre Dışı reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "RunUserPSScriptsFirst" /t REG_DWORD /d 0 /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 'RunUserPSScriptsFirst' -PropertyType DWord -Value 1 -Force | Out-Null # Devre Dışı New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'RunUserPSScriptsFirst' -PropertyType DWord -Value 0 -Force | Out-Null
BilgisayarMakine genelinde ayar
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] ; Seçenekler (yalnızca birini kullanın) ; Etkin "RunUserPSScriptsFirst"=dword:00000001 ; Devre Dışı "RunUserPSScriptsFirst"=dword:00000000
CMD
:: Seçenekler (yalnızca birini kullanın) :: Etkin reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "RunUserPSScriptsFirst" /t REG_DWORD /d 1 /f :: Devre Dışı reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "RunUserPSScriptsFirst" /t REG_DWORD /d 0 /f
PowerShell
# Ortak: anahtarı oluştur New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null # Seçenekler (yalnızca birini kullanın) # Etkin New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'RunUserPSScriptsFirst' -PropertyType DWord -Value 1 -Force | Out-Null # Devre Dışı New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'RunUserPSScriptsFirst' -PropertyType DWord -Value 0 -Force | Out-Null