IIS Logs C:\WINDOWS\system32\LogFiles\W3SVC1

Posted on 2012-08-23
Last Modified: 2012-08-30
Hi Experts,

I have an SBS2K3 Server with 10 users and the IIS logs are 400mb in space each, and unless I manually delete them they fill up the server.

We do a backup ever 6 hours so it would be great if I could get them to auto cleanup or reduce their size to something more managable.

Look forward to reading your comments
Question by:isdd2000
    LVL 10

    Accepted Solution


    check this powershell script to compress IIS logs files and remove
    it as per your schedule.

    Let us know if you need some more help
    LVL 18

    Assisted Solution

    by:Sushil Sonawane
    Open the IIS Manager ---> right click web site --> web site-->enable logging--->properties -> advance --> disable the extended logging options.

    Disable the option in extened logging which you do not want.

    It will help you to reduce the new logs file size.



    Change the log file path and store on the another drive or cut old log file and store external drive.
    LVL 10

    Expert Comment


    Author Comment


    Is it possible to write a VB script to do this for me?
    LVL 10

    Expert Comment


    Check attach .txt file in which contain script to compress log files of IIS.

    To run this script you need to save this file in .vbs format using save as

    and you required Gzip on your server to compress the files.

    Let us know if you need more help.


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    I work for a company that primarily works with small businesses as their outsourced IT vendor. As such the majority of these customers utilize some version of Small Business Server. Due to the economics of running a small business, many of these cus…
    Ever wondered why Windows 8 and 10 don't seem to accept your GPO-based software deployment while Windows 7 does? Read on.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now