Mundy

IT Knowledge Base

User Tools

Site Tools


delete_iis_log_files_older_than_30_days

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
delete_iis_log_files_older_than_30_days [2016/11/22 16:41]
Dan Mundy created
delete_iis_log_files_older_than_30_days [2018/04/09 09:56] (current)
Line 5: Line 5:
 Get-ChildItem | where { $_.LastWriteTime -lt (Get-Date).AddDays(-30)} | Remove-Item Get-ChildItem | where { $_.LastWriteTime -lt (Get-Date).AddDays(-30)} | Remove-Item
 </​code>​ </​code>​
 +
 +{{page>​ad&​noeditbutton&​nofooter}}
delete_iis_log_files_older_than_30_days.txt ยท Last modified: 2018/04/09 09:56 (external edit)