7,023 questions
Enable Logging
Glenn Maxwell
12,871
Reputation points
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)
Windows for business Windows Client for IT Pros Directory services Active Directory
Windows for business Windows Server User experience PowerShell
Windows for business Windows Server User experience Other
20,212 questions
Sign in to answer