Last active
December 8, 2021 12:41
-
-
Save fluggelgleckheimlen/e0046fdc215b60cfd8a864183478fbe1 to your computer and use it in GitHub Desktop.
Clear All Event Logs with PowerShell
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
if ($env:ExchangeInstallPath) { | |
echo "DO NOT run on Exchange Server" | |
} | |
else { | |
wevtutil el | Foreach-Object {wevtutil cl "$_"} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment