Turn on Module Logging: registerwaarde EnableModuleLogging (ModuleNames)GebruikerHKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames

Geen officiële Nederlandse tekst (Engelse originele tekst)

Beleids-ID
EnableModuleLogging
Bereik
Computerconfiguratie, Gebruikersconfiguratie
Ondersteund op
At least Microsoft Windows 7 or Windows Server 2008 family
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Windows-onderdelen › Windows PowerShell

Register

EnableModuleLogging

REG_DWORDComputerGebruiker
Waarde bij ingeschakeld
1
Waarde bij uitgeschakeld
0
Toepassen met .reg · CMD · PowerShell
ComputerInstelling voor de hele computer
.reg
Windows Registry Editor Version 5.00

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

; Opties (gebruik er maar één)
; Ingeschakeld
"EnableModuleLogging"=dword:00000001
; Uitgeschakeld
"EnableModuleLogging"=dword:00000000
CMD
:: Opties (gebruik er maar één)

:: Ingeschakeld
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 1 /f
:: Uitgeschakeld
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 0 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Force | Out-Null

# Opties (gebruik er maar één)
# Ingeschakeld
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 1 -Force | Out-Null
# Uitgeschakeld
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 0 -Force | Out-Null
GebruikerInstelling per account
.reg
Windows Registry Editor Version 5.00

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

; Opties (gebruik er maar één)
; Ingeschakeld
"EnableModuleLogging"=dword:00000001
; Uitgeschakeld
"EnableModuleLogging"=dword:00000000
CMD
:: Opties (gebruik er maar één)

:: Ingeschakeld
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 1 /f
:: Uitgeschakeld
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 0 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Force | Out-Null

# Opties (gebruik er maar één)
# Ingeschakeld
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 1 -Force | Out-Null
# Uitgeschakeld
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 0 -Force | Out-Null

(lijstwaarden)

REG_SZGebruikerComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Module Names
Waardetype
REG_SZ
Toepassen met .reg · CMD · PowerShell
GebruikerInstelling per account
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames]
"<waarde invoeren>"="<waarde invoeren>"
CMD
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" /v "<waarde invoeren>" /t REG_SZ /d "<waarde invoeren>" /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 '<waarde invoeren>' -PropertyType String -Value '<waarde invoeren>' -Force | Out-Null
ComputerInstelling voor de hele computer
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames]
"<waarde invoeren>"="<waarde invoeren>"
CMD
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" /v "<waarde invoeren>" /t REG_SZ /d "<waarde invoeren>" /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 '<waarde invoeren>' -PropertyType String -Value '<waarde invoeren>' -Force | Out-Null