Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,872 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All
I have a requirement to enable PowerShell/WinRM/WMI logging on my servers. I will enable this through the GPOs listed below. The requirement is that I need to generate event IDs or logs to show management that I have configured the GPO properly. Please guide me on how I can generate events or logs by executing specific PowerShell commands.
1. To enable PowerShell Module Logging
Computer Configuration > Administrative Templates > Windows Components > Windows PowerShell
Set Turn on Module Logging to Enabled-->Module Name: Show: Value=*
2. To enable PowerShell Script Block Logging:
Set Turn on PowerShell Script Block Logging:Enabled
3. To enable PowerShell Transcription:
Set Turn on PowerShell Transcription to Enabled
Check the Include invocation headers box( Transcript output directory will be blank)