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 | 5,629 views | 16/12/2010 21:52

Powershell function to assign application pool to website in IIS7.

Function Set-AppPool
{
Param ($Description, $AppPool)
 
	Set-ItemProperty IIS:\Sites\$Description -Name ApplicationPool -Value "$AppPool"
}

Description is the name of website in IIS7.