Remote management of IIS using the command line

Help me manage IIS (what I'm trying to do is create virtual directory, set virtual directory properties) on the remote pc / server.

and check that iis is running and a specific virtual directory exists.

iisvdir.vbs helps to manage iis on local system, how can I use it to manage remote systems.

or is there any other way to do this.

+1


source to share


2 answers


I found this myself, but if anyone does better, let me know. http://support.microsoft.com/kb/816568

list of virtual directories The iisweb / query command uses the following syntax: iisweb / query WebSite [WebSite ...] [/ s Computer [/ u [Domain] User / Password]]



to create a virtual directory. The iisvdir / create command uses the following syntax: iisvdir / create WebSite [/ Virtual Path] Name Physical Path [/ s Computer [/ u [Domain] User / Password]]

it contains the server name.

0


source


You can do much worse than powershell and the IIS provider:

http://learn.iis.net/page.aspx/429/installing-the-iis-70-powershell-provider/



even without a provider, powershell with WMI is lighter x10 than with vbs.

+3


source







All Articles