Turn on Module Logging(모듈 로깅 사용) 레지스트리 값 EnableModuleLogging (ModuleLogging)컴퓨터HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging

정책 ID
EnableModuleLogging
범위
컴퓨터 구성, 사용자 구성
지원 OS
Microsoft Windows 7 또는 Windows Server 2008 이상 제품군
출처
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (버전 1.0)
카테고리
Windows 구성 요소 › Windows PowerShell

레지스트리

EnableModuleLogging

REG_DWORD컴퓨터사용자
활성 값
1
비활성 값
0
.reg · CMD · PowerShell로 적용하기
컴퓨터전역 설정
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging]

; 선택 항목 (하나만 사용)
; 사용
"EnableModuleLogging"=dword:00000001
; 사용 안 함
"EnableModuleLogging"=dword:00000000
CMD
:: 선택 항목 (하나만 사용)

:: 사용
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 1 /f
:: 사용 안 함
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 0 /f
PowerShell
# 공통: 키 만들기
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Force | Out-Null

# 선택 항목 (하나만 사용)
# 사용
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 1 -Force | Out-Null
# 사용 안 함
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 0 -Force | Out-Null
사용자계정별 설정
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging]

; 선택 항목 (하나만 사용)
; 사용
"EnableModuleLogging"=dword:00000001
; 사용 안 함
"EnableModuleLogging"=dword:00000000
CMD
:: 선택 항목 (하나만 사용)

:: 사용
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 1 /f
:: 사용 안 함
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 0 /f
PowerShell
# 공통: 키 만들기
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Force | Out-Null

# 선택 항목 (하나만 사용)
# 사용
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 1 -Force | Out-Null
# 사용 안 함
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 0 -Force | Out-Null

(목록 값)

REG_SZ컴퓨터사용자
활성 값
선택 값에 따름
요소
모듈 이름
값 타입
REG_SZ
.reg · CMD · PowerShell로 적용하기
컴퓨터전역 설정
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames]
"<값 입력>"="<값 입력>"
CMD
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" /v "<값 입력>" /t REG_SZ /d "<값 입력>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames' -Name '<값 입력>' -PropertyType String -Value '<값 입력>' -Force | Out-Null
사용자계정별 설정
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames]
"<값 입력>"="<값 입력>"
CMD
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" /v "<값 입력>" /t REG_SZ /d "<값 입력>" /f
PowerShell
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames' -Name '<값 입력>' -PropertyType String -Value '<값 입력>' -Force | Out-Null