Monday 4 May 2009

IIS7 - Change Site Logs Location via Powershell

For anybody out there who just wants to know a simple line of Powershell to change the logging directory of an IIS7 website, here it is:

Set-ItemProperty 'IIS:\Sites\Default Web Site' -name logFile.directory -value 'D:\IISLogs'

Enjoy...

2 comments:

Mike said...

THANK YOU!!!

Unknown said...
This comment has been removed by the author.