Re: Aaagh! cScript no longer Returning! ??
From: Scripty (isdeveloper_at_hotmail.com)
Date: 03/11/05
- Next message: Torgeir Bakken \(MVP\): "Re: LDAP query help"
- Previous message: Tash: "LDAP query help"
- In reply to: Michael Harris \(MVP\): "Re: Aaagh! cScript no longer Returning! ??"
- Messages sorted by: [ date ] [ thread ]
Date: 11 Mar 2005 08:57:50 -0800
Michael Harris (MVP) wrote:
> > C:\>cscript.exe C:\inetpub\AdminScripts\mkwebdir.vbs -c localhost
-w
> > "Default We
> > b Site" -v "adminDir","C:\MyDir\Web\Admin"
> > Microsoft (R) Windows Script Host Version 5.1 for Windows
> > Copyright (C) Microsoft Corporation 1996-1999. All rights reserved.
> >
> > 2/18/2005 10:11:09 AM : Accessing root for IIS://localhost/W3svc/1
> > 2/18/2005 10:11:09 AM : Done.
> >
> > ....
> >
> > thats it! as you can see, csript never returns from the function.
It
> > performs the function ok, but then just sits there saying 'Done'
and
> > does not return. you have to end task on the dos prompt!! Aagh!!
> >
> > Has anyone else come across this issue???
>
> How long do you wait for it? Some AV products versions (McAfee v8.0i
in
> particular) have been known to cause similar symptons, though usually
long
> delays on cscript shutdown, not necessarily indefinite hangs...
>
> If you are running AV with any kind of script blocking/filtering
features,
> try turning them off and run the script again...
>
Hi Michael...
Would 2 days be long enough to wait for a return ?
I am running this on a Microsoft 2004 VirtualPC running ONLY
windows2000 plus SP3 with IIS5 installed. [I know, I know, SP3.. But
thats our entry level environment that must be used as a starting
point] I am also running this on XP SP2 machines, win2000 SP4 machines
and win2003 server machines. All exhibit this error at some stage or
another.
I have located the problem , well, I have located the where the problem
lies, but not why it happens :
Essentially, we have a script that builds the web site on install. One
of the last things we do is lock down the access rights to the server.
I am doing this using the following command:-
--- cscript.exe _ADSUTILPATH_adsutil.vbs set /w3svc/1/root/MyDir/EnableDirBrowsing "FALSE" >>c:\install.txt --- When the installer gets to this line, it is here that it hangs. At this point, the installation fails. Not only that, but from this point on, no script-based iis admin commands will run (including the example " C:\>cscript.exe C:\inetpub\AdminScripts\mkwebdir.vbs " that is mentioned previously in this thread) This occurs EVEN after you have rebooted the machine. it appears that this command wrecks the whole cscript engine or something. the only way around this is to re-install IIS or wipe the machine and start again from scratch (happily, I'm using virtual PCs mainly in our test labs so thats not too painful). why would setting the EnableDirBrowsing flag to FALSE destroy all subsequent scripts? even after reboot?? Perhaps I have the syntax wrong, but even so I would have hoped an invalid syntax would not result in such a severe error. I am getting around this at present by , er, not changing the DirBrowsing option :) , but I would obviously prefer to be able to do this. Let me know if you have any answers. I am continuing to test this here and hope to post a full example that is easily replicated, so everyone can enjoy the error that I am experiencing.
- Next message: Torgeir Bakken \(MVP\): "Re: LDAP query help"
- Previous message: Tash: "LDAP query help"
- In reply to: Michael Harris \(MVP\): "Re: Aaagh! cScript no longer Returning! ??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|