Jaggl Posted February 8, 2008 Share Posted February 8, 2008 Does someone know how to create a virtual directory in IIS over the command line? I want to create a Virt. Directory with the "Install/Uninstall Scripts" so that my Customers can view the PS SS from their Server. Link to comment Share on other sites More sharing options...
swish Posted February 8, 2008 Share Posted February 8, 2008 I think this will help ya http://technet2.microsoft.com/windowsserver/en/library/a87340fc-86c7-40a9-9881-62789b80cc9d1033.mspx?mfr=true Link to comment Share on other sites More sharing options...
Jaggl Posted February 9, 2008 Author Share Posted February 9, 2008 thx but it just work with IIS 6 not with ISS 5 (witch is used by Win. XP) Link to comment Share on other sites More sharing options...
swish Posted February 9, 2008 Share Posted February 9, 2008 Ahh didnt know your using XP....try google...you might be able to find something. Link to comment Share on other sites More sharing options...
Jaggl Posted February 9, 2008 Author Share Posted February 9, 2008 i think i got what i need........ i will update you when i finished testing, mybe someone needs it too Link to comment Share on other sites More sharing options...
Jaggl Posted February 9, 2008 Author Share Posted February 9, 2008 got it Install/Uninstall Scripts for COD4: INSTALL: C:\Inetpub\AdminScripts\mkwebdir.vbs -c LocalHost -w "1" -v "%serverip%-%serverport%","%gameserverroot%pb\svss" UNINSTALL: C:\Inetpub\AdminScripts\adsutil.vbs DELETE W3SVC/1/Root/%serverip%-%serverport% This Script creates a Vdir Named: %ServerIp%-%ServerPort% in the Location %gameserverroot%pb\svss" The Only ting you hav to do is that you have to run the C:\Inetpub\AdminScripts\adsutil.vbs for one time on each Dedicated Server (to register it) dont know if there is a Switch to do this automatically?! Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted May 8, 2009 Share Posted May 8, 2009 Hi, I got this working but as I want to use it with PHP pages I need to enable the script execution in the virtual directory when its created by the TCA install script. I searched on google but didnt find yet. Basically if I use the script C:\Inetpub\AdminScripts\mkwebdir.vbs -c LocalHost -w "1" -v "%serverip%-%serverport%","%gameserverroot%tmweb" then when I go to the webpage I got a 403.1 error because The index.php is not allowed to be executed. Thats to provide my Trackmania clients the TMweb panel, atm i gota logon the remote computer and set the permissions manually which is annoying as my servers are autocreated, sometimes when im afk. Does someone know how to do to get the persmissions set automatically on scripts allowed ? EDIT : finally found out, had to use adsutil.vbs actually to set accessscript on "true" Link to comment Share on other sites More sharing options...
Jaggl Posted July 12, 2009 Author Share Posted July 12, 2009 how? Link to comment Share on other sites More sharing options...
peace Posted July 12, 2009 Share Posted July 12, 2009 Hey. I have IIS 6.0 on WS2003 and using iisvdir /create "Site Name" "%serverip%:%serverport%" "%userfilespath%" but nothing has happened than. What can block creation of virtual directory? Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted July 13, 2009 Share Posted July 13, 2009 run it in a command prompt so you can see error messages. Link to comment Share on other sites More sharing options...
peace Posted July 13, 2009 Share Posted July 13, 2009 I did but nothing happens after entering this command just new line in cmd, no errors and no sucess messages at all. Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted July 13, 2009 Share Posted July 13, 2009 C:\Inetpub\AdminScripts\mkwebdir.vbs -c LocalHost -w "1" -v "VD NAME HERE","VD PATH HERE" Link to comment Share on other sites More sharing options...
peace Posted July 13, 2009 Share Posted July 13, 2009 I have WS2003 and IIS 6.0 and you provided me with IIS 5.0 command. In IIS 6.0 it's system32/iisvdir.vbs amd other variables. Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted July 13, 2009 Share Posted July 13, 2009 i got ws 2003 and it works for me Link to comment Share on other sites More sharing options...
peace Posted July 13, 2009 Share Posted July 13, 2009 Thanks for sharing but i havent got mkwebdir.vbs script but i know that my ws2003 enterprise r2 version has iisvdir.vbs script in system32 directory but no return to any commands . What WIndows components should be installed? I have found that iisvdir.vbs and all other scripts use WMI (Windows Management Instrumentation). Is WMI default in WS or it should be installed through components? Thank you. Link to comment Share on other sites More sharing options...
peace Posted July 13, 2009 Share Posted July 13, 2009 Hmmm. Im getting in aplications event log Faulting application wscript.exe, version 5.6.0.8832, faulting module scrobj.dll, version 5.6.0.8832, fault address 0x000000000000a684.. all time when i use iisvdir command . It seems that scrobj.dll is broken or deleted. P.S. Have found issue about scrobj.dll and KIS 7 Installed. Got damn. P.S.S. Have deleted KAV 7. Now all scripts work perfect. Link to comment Share on other sites More sharing options...
peace Posted July 14, 2009 Share Posted July 14, 2009 Again i have troubles with that IIS script It works great through command prompt. But throgh TCA script feature it returns error: iisvdir is not recognized as an internal or external command, operable program or batch file Have no idea what to do. I have solve the problem with Luis help. I have WS2003 x64. So i copy iisvdir.vbs to another location f.e. c:\scripts, than i copied iisschlp.wsc and cmdlib.wsc to WINDOWS\SysWoW64 directory. Then I have opened comand prompt by runing: %windir%\SysWoW64\cmd.exe And last actions were to register components: regsvr32 iisschlp.wsc and regsvr32 cmdlib.wsc. Now it works great. Thanks to Luis Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.