Posted in Hosting & IIS7, Windows Powershell | No Comment | 10,686 views | 18/04/2010 12:05
First, you need IIS Log Parser 2.2 to parse log files and calculate daily usage. Then we will get list of websites with Powershell and write bandwidth usages into a file.
Download IIS Log Parser v2.2:
Install IIS Log Parser v2.2. I created a new directory in drive D called LogParser and copied 2 files (logparser.dll and logparser.exe) into that directory. Now let’s see Powershell codes how to use LogParser v2.2 with Powershell.
You see how easy it is? But this is just an example. I don’t care about Log Path. You should edit path for your own environment. Have fun!