Deployment mit Powershell – Schritt 5.1: IIS Webseite starten und stoppen.

by robert 14. May 2009 13:17

Nachdem die Webseite nun im IIS eingerichtet ist, soll Sie natürlich auch gestartert werden:

$website = Get-WmiObject -Namespace "root/WebAdministration"  -Class Site | Where-Object { $_.Name -eq $iis_app_name }
$website.Start()    

(Analog dazu funktioniert natürlich auch $website.Stop())

enjoyed the post?

Tags:

Comments are closed

About Oliver

shades-of-orange.com code blog logo I build web applications using ASP.NET and have a passion for javascript. Enjoy MVC 4 and Orchard CMS, and I do TDD whenever I can. I like clean code. Love to spend time with my wife and our children. My profile on Stack Exchange, a network of free, community-driven Q&A sites

About Anton

shades-of-orange.com code blog logo I'm a software developer at teamaton. I code in C# and work with MVC, Orchard, SpecFlow, Coypu and NHibernate. I enjoy beach volleyball, board games and Coke.