Tuesday, February 11, 2014

Start and Stop IIS Website using PowerShell

In Order to stop and start website using PowerShell script I used following command

Import-Module WebAdministration

Stop-WebSite -Name 'Maintenance'

Start-Sleep -s 5

Start-WebSite -Name 'Maintenance'

No comments: