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.
使用PSdeploy,一个Powershell模块http://rprieto.github.io/psDeploy/
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.