Solved

Create IIS Virtual Directories though script, batch file, or Programming Language

Posted on 2008-06-25
3
1,324 Views
Last Modified: 2013-11-26
I am looking to find a script that will Automatcally create a virtual dirctory in IIS6. I am not really looking for c# / vb.net examples as all of the examples did not work on my production server. The problem i am having with .Net solutions is that it will not create the virtual directory under the proper domain name.

I am looking for something i can pass the name of the web domain and the virual directory and it will do the rest by createing the vdir in the proper website. I would need a switch for basic auth as some of the sites are running basic authentication and others are not.

I would perfer a vbscript or batch file, but if you can find me an alternative solution that works than that would be good.
0
Comment
Question by:talker2004
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Alexey_Varlamov earned 500 total points
ID: 21867532
1. iisweb standard script:  http://technet2.microsoft.com/windowsserver/en/library/a87340fc-86c7-40a9-9881-62789b80cc9d1033.mspx?mfr=true

2. iisvdir standard script:  http://technet2.microsoft.com/windowsserver/en/library/a87340fc-86c7-40a9-9881-62789b80cc9d1033.mspx?mfr=true

You must be a member of the Administrators group on the local computer or member of the Domain Admins in the domain.
0
 
LVL 7

Author Comment

by:talker2004
ID: 21868674
I don't have these scripts. Is this a download or somthing i have to install from the cd?
0
 
LVL 2

Expert Comment

by:Alexey_Varlamov
ID: 21876218
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now