Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 778 Bytes

README.md

File metadata and controls

27 lines (14 loc) · 778 Bytes

Deploy websites on IIS with powershell

Powershell scripts for managing .net 4 websites in IIS 7. Note that they require local admin priviliges.

CreateSite.ps1

Script to install (or replace) a local website and app pool:

CreateSite.ps1 [WebsiteName] [AppPoolName] [Port] [Path] ([domain\user] [password])

CreateVirtualDirectory.ps1

Script to install (or replace) a virtual directory:

CreateVirtualDirectory.ps1 [WebsiteName] [FolderName] [PhysicalPath] ([domain\user] [password])

BindToDefaultPort.ps1

Script to install (or replace) a local website binding on port 80

BindToDefaultPort.ps1 [WebsiteName] [host-header]    

StopSite.ps1

Script to stop a local website and app pool

StopSite.ps1.ps1 [WebsiteName] [AppPoolName]