Re: Aaagh! cScript no longer Returning! ??

From: Scripty (isdeveloper_at_hotmail.com)
Date: 03/11/05


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.


Relevant Pages

  • Re: Use Group Policy to assign computer startup scripts for 2007 Office deployment
    ... The Office 2007 pro install takes nearly 40 minutes, ... I just edited the local machine policy to run this script on ... Simplify Group Policy Troubleshooting with the NEW GPExpert ... machines under it. ...
    (microsoft.public.windows.group_policy)
  • Re: VBS will not run on some machines, NO errors
    ... Establish sorted file list pictures of good vs: bad machines. ... Alternatively invoke "context menu" inf install. ... "When I go to a command prompt on this server and type Wscript.exe" ... When I state that we tried to run the script manually, ...
    (microsoft.public.scripting.wsh)
  • Script to install windows Service Pack 4
    ... Copy Service Pack 4 with File System Object From Network ... -Users Cannot install Software on machines only Admins ... - How Can i shut Mcafee Virus Scanner off with VB Script? ...
    (microsoft.public.windows.server.scripting)
  • Re: win 98 & vbs logon script
    ... script host has been reinstalled, ... and still no network drives mapped. ... >You have to install script host on Windows 98 machines ...
    (microsoft.public.windows.server.scripting)
  • Re: Installing Solaris 8 Apps on Solaris 10
    ... > install OpenView 6.4.1 and getting tired of trying to hack the install ... > script. ... Thats really the only way*. ...
    (comp.sys.sun.admin)