How do I create websites on remote servers using appcmd?

冷暖自知 提交于 2019-12-18 08:55:14

问题


I have used appcmd to create websites on my local computer. There doesn't appear to be a server parameter which means that i have to remote desktop on to each machine that i'm deploying to and run the appcmd command.

Also, can i use appcmd to deploy to IIS 6.0? If not, how do i deploy to remote IIS 6.0 web servers? I've tried the iisweb.vbs but i can't get it to run on my windows 7 computer because it can#t find the Microsoft.cmdlib. I have tired registering this file but it doesn't make a difference.


回答1:


Using psexec.exe from sysinternals has worked for me to run appcmd on the IIS7 host from my administration host.




回答2:


you can run a web service on the target machine, the web service should have the privileges to add websites to the iis server (done by using System.DirectoryServices




回答3:


After much searching of the internet i could not find an existing tool that needs to do what i need it to do. So in the end i had to create my own utility application that creates websites using WMI.



来源:https://stackoverflow.com/questions/4034102/how-do-i-create-websites-on-remote-servers-using-appcmd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!