Powershell scripts for managing .net 4 websites in IIS 7. Note that they require local admin priviliges.
Script to install (or replace) a local website and app pool:
CreateSite.ps1 [WebsiteName] [AppPoolName] [Port] [Path] ([domain\user] [password])
Script to install (or replace) a virtual directory:
CreateVirtualDirectory.ps1 [WebsiteName] [FolderName] [PhysicalPath] ([domain\user] [password])
Script to install (or replace) a local website binding on port 80
BindToDefaultPort.ps1 [WebsiteName] [host-header]
Script to stop a local website and app pool
StopSite.ps1.ps1 [WebsiteName] [AppPoolName]