Solved

iis script

Posted on 2014-01-25
7
212 Views
Last Modified: 2014-01-29
Deal all,
Its possible to develop a iis script to configure virtual directory under given domain?

CreateVD( UnderDomain, VDName, VDPath)
0
Comment
Question by:ethar1
  • 3
  • 2
  • 2
7 Comments
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39809779
Hi,
probably yes. Which IIS version and which scripting technology?
You might be able to use VBScript and ADSI / WMI provider as well as Powershell and WebAdministration module - but all of them depend on the version of the OS/IIS.

Some guidelines:
VBScript and IIS >= 7
http://www.iis.net/configreference/system.applicationhost/sites/site/application/virtualdirectory

VBScript IIS6
http://msdn.microsoft.com/en-us/library/ms524830%28v=vs.90%29.aspx

HTH
Rainer
0
 

Author Comment

by:ethar1
ID: 39810078
IIS 7 WINDOWS 2003 64
0
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39810150
Hi,
hm, this info does not look right as Windows Server 2003 is shipped with IIS6 and afaik you cannot install another / a newer version on the OS.
Therefore one part has to be wrong: either its
a. Windows Server 2003 with IIS6
or
b. Windows Server 2008 with IIS7

Thanks for clarification.
Rainer
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:ethar1
ID: 39810704
sorry , yes it is iis6
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 39812204
you'll want to use the Iisvdir.vbs script already included in the IIS setup. have a look at the link below

https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/82373078-e14f-4f20-9a1f-883c2e94dc8d.mspx?mfr=true
0
 

Author Comment

by:ethar1
ID: 39817920
can I use this script to create the web site also?
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39817938
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

813 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

11 Experts available now in Live!

Get 1:1 Help Now