search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Setting W3C Logging for Websites with Powershell
Posted in Hosting & IIS7, Windows Powershell | No Comment | 4,160 views | 16/12/2010 22:26

Powershell function to set W3C logging to IIS7 websites.

1
2
3
4
5
6
Function Set-W3CLogging
{
Param ($LogDir, $Description)
 
	Set-ItemProperty IIS:\Sites\$Description -Name LogFile.Directory -Value "$LogDir"
}

LogDir is the path of Log directory.



Leave a Reply