Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

New virtual directory using command line

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  II6 and ASP Downloading problem  
Author Message
hereriks

External


Since: Jun 16, 2004
Posts: 5



(Msg. 1) Posted: Wed Jun 16, 2004 3:08 pm
Post subject: New virtual directory using command line
Archived from groups: microsoft>public>inetserver>iis (more info?)

How do I go about creating a new virtual directory (or website) using
command line options? I'm trying to make an installscript that can be used
both for IIS 5 and 6. What I need to do is to set up the new virtual virtual
directory, point it to the directory the user chooses during install and
then set up the proper parameters for scripts and executables as well as
users. (The web app also uses an ISAPI web service extension). I've been
fiddling around with the adsutil.vbs script but I can't get it to do what I
want. Every time i try to run:
"adsutil.vbs create w3svc/1/root/NameOfApp "C:\path" it gives me: Error
creating the object ErrNumber: -2147463153 (0x800500F).

MMTIA,
Håvard

 >> Stay informed about: New virtual directory using command line 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 2901



(Msg. 2) Posted: Thu Jun 17, 2004 2:44 am
Post subject: Re: New virtual directory using command line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I think you need to do:

adsutil.vbs CREATE w3svc/1/root/myVdir "IIsWebVirtualDir"
adsutil.vbs SET w3svc/1/root/myVdir/path c:\path

The first line creates the virtual directory, and the second line sets the
path value (you can then set other values if you want)

Cheers
Ken


"Håvard Olerud Eriksen" <hereriks.RemoveThis@PANTSyahoo.com> wrote in message
news:2jakh5Fv632sU1@uni-berlin.de...
: How do I go about creating a new virtual directory (or website) using
: command line options? I'm trying to make an installscript that can be used
: both for IIS 5 and 6. What I need to do is to set up the new virtual
virtual
: directory, point it to the directory the user chooses during install and
: then set up the proper parameters for scripts and executables as well as
: users. (The web app also uses an ISAPI web service extension). I've been
: fiddling around with the adsutil.vbs script but I can't get it to do what
I
: want. Every time i try to run:
: "adsutil.vbs create w3svc/1/root/NameOfApp "C:\path" it gives me: Error
: creating the object ErrNumber: -2147463153 (0x800500F).
:
: MMTIA,
: Håvard
:
:

 >> Stay informed about: New virtual directory using command line 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Changing directory security via command line - Is there any way to modify the directory security of a virtual directory in IIS5 using the command line or a vbs script? I'd like to be able to turn off anonymous access and turn on basic authentication for a particular virtual directory during the..

enable SSL channel for IIS directory from command line - Hi, Does anyone know how to use command line tool to configure IIS so that I can turn on the https connection for the directory security. Currently I have to manually use the IIS5 Service GUI to select "Require Security Channel(SSL)" on the D...

Add virtual root from command line - I have an installation program which installs a virtual root on the default website. In NT4 and Win2K I was able to accomplish this by adding a registry key to HKLM/System/CurrentControlSet/Services/W3SVC/Parameters/VirtualRoots. This no longer seems to...

IIS v5 Command-Line - I have generated a VB script with SYSOCMGR to install IIS using different configuration options. These options include default document location. I have been unable to find a command-line program that will allow me to install, configure a web site..

Command line - I was wondering if it is possible to start and stop websites from a command prompt in IIS 5.0. I saw that IIS 6.0 has the capabilities from the new iisweb.vbs script included with IIS but I was wondering if there is anything like that for IIS 6. Any....
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]