Link to home
Start Free TrialLog in
Avatar of ethar turky
ethar turkyFlag for Saudi Arabia

asked on

iis script

Deal all,
Its possible to develop a iis script to configure virtual directory under given domain?

CreateVD( UnderDomain, VDName, VDPath)
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

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
Avatar of ethar turky

ASKER

IIS 7 WINDOWS 2003 64
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
sorry , yes it is iis6
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
can I use this script to create the web site also?
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial