Enable Logging

Glenn Maxwell 12,871 Reputation points
2024-05-20T19:38:43.1033333+00:00

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
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.