Monday, January 6, 2014

Create a bat file on Citrix web interface server for deletion of IIS logs.

Copy the below mention code in notepad and save as .bat file.

Schedule the file to run on weekly basis.

You can change the location of log file folder and for no. of days you want to keep the logs on the server.

@echo off

forfiles -p "C:\WINDOWS\system32\LogFiles\W3SVC1" -s -m *.* -d -25 -c "cmd /c del @path"

No comments:

Post a Comment