Created
April 7, 2020 18:28
-
-
Save chadmcox/533e66fc835cd466c78b093225d24849 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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