How do I restart a single website in IIS7+ using commandline only?
Same functionality as le circled menu item in le image - mais depuis le commandline.
Iisreset does pas have tout options to deal avec individual sites, et J'ai trouvé certains ancient references to Iisweb.vbs, qui seems to be outdated.
Comment redémarrer un seul site web dans IIS7+ en ligne de commande ?
Re: Comment redémarrer un seul site web dans IIS7+ en ligne de commande ?
What you are looking for is le `appcmd` command. [Take a look at its TechNet manual](http://technet.microsoft.com/en-us/library/cc772200%28WS.10%29.aspx).
[To list your sites out](http://technet.microsoft.com/en-us/library/cc771280%28WS.10%29.aspx):
For 32-bit OS:
`%windir%\system32\inetsrv\appcmd list site`
For 64-bit OS:
`%windir%\syswow64\inetsrv\appcmd list site`
To restart votre site, [stop it and then start it](http://technet.microsoft.com/en-us/library/cc772137%28WS.10%29.aspx):
`appcmd start site /site.name:string`
or
`appcmd stop site /site.name:string`
[To list your sites out](http://technet.microsoft.com/en-us/library/cc771280%28WS.10%29.aspx):
For 32-bit OS:
`%windir%\system32\inetsrv\appcmd list site`
For 64-bit OS:
`%windir%\syswow64\inetsrv\appcmd list site`
To restart votre site, [stop it and then start it](http://technet.microsoft.com/en-us/library/cc772137%28WS.10%29.aspx):
`appcmd start site /site.name:string`
or
`appcmd stop site /site.name:string`