Turn on PowerShell Script Block Logging

Bu dilde resmi metin yok (İngilizce özgün metin gösteriliyor)

İlke Kimliği
EnableScriptBlockLogging
Kapsam
Bilgisayar Yapılandırması, Kullanıcı Yapılandırması
Desteklenen işletim sistemleri
At least Microsoft Windows 7 or Windows Server 2008 family
Kaynak
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (sürüm 1.0)
Kategori
Windows Bileşenleri › Windows PowerShell

Açıklama


This policy setting enables logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log. If you enable this policy setting,
Windows PowerShell will log the processing of commands, script blocks, functions, and scripts - whether invoked interactively, or through automation.

If you disable this policy setting, logging of PowerShell script input is disabled.

If you enable the Script Block Invocation Logging, PowerShell additionally logs events when invocation of a command, script block, function, or script
starts or stops. Enabling Invocation Logging generates a high volume of event logs.

Note: This policy setting exists under both Computer Configuration and User Configuration in the Group Policy Editor. The Computer Configuration policy setting takes precedence over the User Configuration policy setting.

Seçenekler

Boş kutu ve işaretli kutu , Grup İlkesi düzenleyicisindeki onay kutusu öğelerini ayırt eder (işaretli kutu, varsayılan olarak seçili olan bir öğedir).

  • Log script block invocation start / stop events:

Kayıt defteri

BilgisayarHKEY_LOCAL_MACHINE
  • EnableScriptBlockLoggingREG_DWORD
  • EnableScriptBlockInvocationLoggingREG_DWORD
KullanıcıHKEY_CURRENT_USER
  • EnableScriptBlockLoggingREG_DWORD
  • EnableScriptBlockInvocationLoggingREG_DWORD

Aynı kategorideki diğer ilkeler

Bu kategorideki tüm ilkeleri gör (5)