Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Created January 4, 2022 21:56
Show Gist options
  • Save ryanvgates/7b475c6b334f6ba3173a4afee9de1d5d to your computer and use it in GitHub Desktop.
Save ryanvgates/7b475c6b334f6ba3173a4afee9de1d5d to your computer and use it in GitHub Desktop.
IIS Log Cleanup One Liner
ROBOCOPY C:\inetpub\logs\LogFiles\W3SVC1 C:\log-files-test /mov /minage:14 & ROBOCOPY C:\inetpub\logs\LogFiles\W3SVC2 C:\log-files-test /mov /minage:14 & del C:\log-files-test /q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment