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

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Hosting & IIS7, Windows Powershell | No Comment | 4,494 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.