Saturday, December 31, 2011

Log pruning on Sharpoint Service 3.0 server

Setup schedule job to run the following command every day at 1:30 am.

forfiles.exe /p C:\WINDOWS\system32\LogFiles\W3SVCXXXXXXXXXX /s /m *.log* /d -30 /c "cmd /c del /q @path"

It will delete logs older than 30 days
  ­­ 

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment