PowerShell 스크립트 블록 로깅 활성화
Last updated
Last updated
$PSVersionTable.PSVersion.MajorGet-WmiObject Win32_OperatingSystem | Select -Property Namereg add “HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging” /v “EnableScriptBlockLogging” /t REG_DWORD /d 1 /freg delete “HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell” /freg query “HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging” /v “EnableScriptBlockLogging”