Policy
Turn on Module Logging
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows7, WindowsServer2008
This policy setting allows you to turn on logging for Windows PowerShell modules. If you enable this policy setting, pipeline execution events for members of the specified modules are recorded in the Windows PowerShell log in Event Viewer. Enabling this policy setting for a module is equivalent to setting the LogPipelineExecutionDetails property of the module to True. If you disable this policy setting, logging of execution events is disabled for all Windows PowerShell modules. Disabling this policy setting for a module is equivalent to setting the LogPipelineExecutionDetails property of the module to False. If this policy setting is not configured, the LogPipelineExecutionDetails property of a module or snap-in determines whether the execution events of a module or snap-in are logged. By default, the LogPipelineExecutionDetails property of all modules and snap-ins is set to False. To add modules and snap-ins to the policy setting list, click Show, and then type the module names in the list. The modules and snap-ins in the list must be installed on the computer. 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.
Registry values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\EnableModuleLogging | REG_DWORD | 1 | 0 |
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Module Names ID Listbox_ModuleNames | list | HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames\EnableModuleLogging Type REG_MULTI_SZ | List: standard |
Other policies in this category
Explore related policies at the same level.
- UserSet the default source path for Update-HelpAt least Microsoft Windows 7 or Windows Server 2008 family
- ComputerSet the default source path for Update-HelpAt least Microsoft Windows 7 or Windows Server 2008 family
- ComputerTurn on Module LoggingAt least Microsoft Windows 7 or Windows Server 2008 family
- UserTurn on PowerShell Script Block LoggingAt least Microsoft Windows 7 or Windows Server 2008 family
- ComputerTurn on PowerShell Script Block LoggingAt least Microsoft Windows 7 or Windows Server 2008 family
- ComputerTurn on PowerShell TranscriptionAt least Microsoft Windows 7 or Windows Server 2008 family
- UserTurn on PowerShell TranscriptionAt least Microsoft Windows 7 or Windows Server 2008 family
- ComputerTurn on Script ExecutionAt least Microsoft Windows 7 or Windows Server 2008 family
- UserTurn on Script ExecutionAt least Microsoft Windows 7 or Windows Server 2008 family