Miquel Àngel
Miquel Àngel

Reputation: 164

Remove and create IIS 6 site using Powershell

I'm Trying to develope a powershell script to create our websites from the scratch, but first I want to check if exist any website with the same name and if exist remove it. But I'm stuck looking the way to delete and create a site using powershell against IIS6.

Thanks.

Upvotes: 1

Views: 425

Answers (2)

androzo
androzo

Reputation: 131

Additionally, you could test a few cmdlets like:

    Get-WebApplication | Where-Object{$_.Name -like '*MySiteName*'}

And then of course using PSdeploy or MSdeploy modules to deploy your web application

Upvotes: 1

Miquel Àngel
Miquel Àngel

Reputation: 164

Using PSdeploy, a powershell module http://rprieto.github.io/psDeploy/

Upvotes: 1

Related Questions