Problem: Inetpub Logs Logfiles W3SVC1 Are Getting Very Large.

Asked By 10 points N/A Posted on -
qa-featured

I have recently made up an SCCM server and in that server our C: is filling up due to this inetpub logs logfiles w3svc1 directory. Is there any way to regularly delete the same?

SHARE
Answered By 0 points N/A #96207

Problem: Inetpub Logs Logfiles W3SVC1 Are Getting Very Large.

qa-featured

Yes, I am using the following script to schedule the delete of old files.

at <HH:MM> /EVERY: <weekday> Forfiles.exe -p

C:WINDOWSsystem32LogFilesW3SVC1 -m *.log -d –

<interval> -c "Cmd.exe /C del @path"

In the above script specify the time and weekday which you need to delete the files. To specify to delete files older than particular days you can use the interval and specify some number say 30.

 

Login/Register to Answer

Related Questions