Skip to content

Instantly share code, notes, and snippets.

@chadmcox
Created April 7, 2020 18:28
Show Gist options
  • Select an option

  • Save chadmcox/533e66fc835cd466c78b093225d24849 to your computer and use it in GitHub Desktop.

Select an option

Save chadmcox/533e66fc835cd466c78b093225d24849 to your computer and use it in GitHub Desktop.
#has a group policy change occured recently
Get-WinEvent -FilterHashTable @{LogName="Microsoft-Windows-GroupPolicy/Operational";id=4016} | Select `
Machinename, TimeCreated, ID, @{n= "Message";e={($_.Message -Replace “`r`n|`r|`n”,” ”).Trim()}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment