Some articles are posted as Images, Please use Computers to go through them for best experience. For phone users, switch to Web Version

Windows - Setup an automated task that clear up Older log files automatically.

Powershell command to cleanup logs

Get-ChildItem "C:\UpdateLogs" -File -Recurse | Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-5) } | Remove-Item -Force


































No comments:

Post a Comment