Mundy

IT Knowledge Base

User Tools

Site Tools


Sidebar

Contact me at dan@mundy.co for any feedback or suggestions.


My other sites:

Search all my sites:

delete_iis_log_files_older_than_30_days

Delete IIS log files older than 30 days

cd c:\inetpub\logs\logfiles\w3svc1 
Get-ChildItem | where { $_.LastWriteTime -lt (Get-Date).AddDays(-30)} | Remove-Item




delete_iis_log_files_older_than_30_days.txt · Last modified: 2018/04/09 09:56 (external edit)