Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a build script to add a Virtual Directory to an existing website running on the same server.

it works fine,

is it possible to add a virtual directory to a remote machine? which the user has access and authorisation for.

the script we are using is a simple .bat file the commandline for is is as below

SET appName=myApp
set pathName= myApp

rem -- the below statement will creates the web application  under IIS for you
c:\Windows\System32\inetsrv\appcmd add app /"Default Web Site" /path:/%appName% /physicalPath:d:\websites\ultimate\%pathName%
share|improve this question
appcmd on IIS6? Not II7 on Server 2003? – Mike Fiedler Jun 2 '09 at 14:11

Have a look at the "iisvdir.vbs" script (in %SystemRoot%\System32) that installs w/ IIS 6. I believe that this script will do what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.