File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ IISLogsCleanup.ps1 - IIS Log File Cleanup Script
66A PowerShell script to compress and archive IIS log files.
77
88This script will check the folder that you specify, and any files older
9- than the first day of the previous month will be coDOMAINNAMEsed into a
9+ than the first day of the previous month will be compressed into a
1010zip file. If you specify an archive path as well the zip file will be
1111moved to that location.
1212
1313The recommended use for this script is a once-monthly scheduled task
14- run on the first day of each month. This will coDOMAINNAMEs all files older
14+ run on the first day of each month. This will compress all files older
1515than the first day of the previous month, resulting in only 1-2 months
1616of log files being stored on the server.
1717
@@ -31,12 +31,12 @@ a central log repository stored on a NAS.
3131
3232. EXAMPLE
3333.\IISLogsCleanup.ps1 -Logpath "D:\IIS Logs\W3SVC1"
34- This example will coDOMAINNAMEs the log files in "D:\IIS Logs\W3SVC1" and leave
34+ This example will compress the log files in "D:\IIS Logs\W3SVC1" and leave
3535the zip files in that location.
3636
3737. EXAMPLE
3838.\IISLogsCleanup.ps1 -Logpath "D:\IIS Logs\W3SVC1" -ArchivePath "\\nas01\archives\iislogs"
39- This example will coDOMAINNAMEs the log files in "D:\IIS Logs\W3SVC1" and move
39+ This example will compress the log files in "D:\IIS Logs\W3SVC1" and move
4040the zip files to the archive path.
4141
4242. LINK
You can’t perform that action at this time.
0 commit comments