How to start stop Website IIS Command Way

Open Command Prompt

Set the path of appcmd to path

SET PATH=%PATH%;%systemroot%\system32\inetsrv\

List Sites:
appcmd list site

To Restart:
appcmd start site /{sitename}
appcmd stop site /{sitename}

Through Power Shell

PS C:\Users\Administrator> Import-Module WebAdministration
PS C:\Users\Administrator> Stop-WebSite
PS C:\Users\Administrator> Start-WebSite

Hope this helps. See you in our next post. Till then Code with Confidence

you're currently offline