Running VBS Script Via Logon Batch File 
Author Message
 Running VBS Script Via Logon Batch File

I am attempting to run a VBS script that maps drives based on Windows 2000
(Mixed Mode) Security Groups from Windows 95 systems. I wrote a KiXtart
script that works nicely for this, but the company I am working with wants
to do WSH scripting for this function, thus the VB Script.

The VB Script works fine from the Command line, but not from the logon batch
file (the batch file hangs). The contents of the logon batch file are:

            %0\..\cscript.exe %0\..\script.vbs

Use of the %0\..\ to reference the NETLOGON share of the DC/BDC (Mixed Mode)
authenticating the User works fine using KiXtart (%0\..\kix32.exe
%0\..\kixscript.kix), but hangs using cscript.

Anyone have any insight on this?

Thanks in advance!

Robert Baker
Portland, OR



Tue, 22 Jul 2003 08:42:35 GMT  
 Running VBS Script Via Logon Batch File
%0\.. is a reference to the directory that the batch file resides in, and
it's fairly unlikely that cscript.exe will be in this directory. Try using
cscript.exe %0\..\script.vbs



: I am attempting to run a VBS script that maps drives based on Windows 2000
: (Mixed Mode) Security Groups from Windows 95 systems. I wrote a KiXtart
: script that works nicely for this, but the company I am working with wants
: to do WSH scripting for this function, thus the VB Script.
:
: The VB Script works fine from the Command line, but not from the logon
batch
: file (the batch file hangs). The contents of the logon batch file are:
:
:             %0\..\cscript.exe %0\..\script.vbs
:
: Use of the %0\..\ to reference the NETLOGON share of the DC/BDC (Mixed
Mode)
: authenticating the User works fine using KiXtart (%0\..\kix32.exe
: %0\..\kixscript.kix), but hangs using cscript.
:
: Anyone have any insight on this?
:
: Thanks in advance!
:
: Robert Baker
: Portland, OR
:
:



Tue, 22 Jul 2003 11:27:55 GMT  
 Running VBS Script Via Logon Batch File
I am tring to executes a VBS script through an WSH object in ASP. I found the
same problem as you encounter, the script hangs......

Few guys and I are tring to solve this problem, see our message header and follow
it up. (The starting message is written by me on 30-Jan).

I can't say any more but maybe we can join up to solve this WSH problem.

Feel free to post any new information into the message dialoge..
Nir.

Quote:
-----Original Message-----
I am attempting to run a VBS script that maps drives based on Windows 2000
(Mixed Mode) Security Groups from Windows 95 systems. I wrote a KiXtart
script that works nicely for this, but the company I am working with wants
to do WSH scripting for this function, thus the VB Script.

The VB Script works fine from the Command line, but not from the logon batch
file (the batch file hangs). The contents of the logon batch file are:

            %0\..\cscript.exe %0\..\script.vbs

Use of the %0\..\ to reference the NETLOGON share of the DC/BDC (Mixed Mode)
authenticating the User works fine using KiXtart (%0\..\kix32.exe
%0\..\kixscript.kix), but hangs using cscript.

Anyone have any insight on this?

Thanks in advance!

Robert Baker
Portland, OR

.



Tue, 22 Jul 2003 15:46:07 GMT  
 Running VBS Script Via Logon Batch File
I have tried that (cscript.exe %0\..\script.vbs), unfortunately cscript.exe
doesn't find the VBS script. If I specify the full UNC path
(\\servername\NETLOGON\script.vbs), the process hangs.


Quote:
> %0\.. is a reference to the directory that the batch file resides in, and
> it's fairly unlikely that cscript.exe will be in this directory. Try using
> cscript.exe %0\..\script.vbs



> : I am attempting to run a VBS script that maps drives based on Windows
2000
> : (Mixed Mode) Security Groups from Windows 95 systems. I wrote a KiXtart
> : script that works nicely for this, but the company I am working with
wants
> : to do WSH scripting for this function, thus the VB Script.
> :
> : The VB Script works fine from the Command line, but not from the logon
> batch
> : file (the batch file hangs). The contents of the logon batch file are:
> :
> :             %0\..\cscript.exe %0\..\script.vbs
> :
> : Use of the %0\..\ to reference the NETLOGON share of the DC/BDC (Mixed
> Mode)
> : authenticating the User works fine using KiXtart (%0\..\kix32.exe
> : %0\..\kixscript.kix), but hangs using cscript.
> :
> : Anyone have any insight on this?
> :
> : Thanks in advance!
> :
> : Robert Baker
> : Portland, OR
> :
> :



Wed, 23 Jul 2003 03:21:32 GMT  
 Running VBS Script Via Logon Batch File
Wscript seems to work better on 95 for logon scripts (rather than cscript).
At least that's what I found 4 years ago, it's been a LONG time since we
used 95.

Regards,
Ian
WSH FAQ http://www.windows-script.com



Quote:
> I am attempting to run a VBS script that maps drives based on Windows 2000
> (Mixed Mode) Security Groups from Windows 95 systems. I wrote a KiXtart
> script that works nicely for this, but the company I am working with wants
> to do WSH scripting for this function, thus the VB Script.

> The VB Script works fine from the Command line, but not from the logon
batch
> file (the batch file hangs). The contents of the logon batch file are:

>             %0\..\cscript.exe %0\..\script.vbs

> Use of the %0\..\ to reference the NETLOGON share of the DC/BDC (Mixed
Mode)
> authenticating the User works fine using KiXtart (%0\..\kix32.exe
> %0\..\kixscript.kix), but hangs using cscript.

> Anyone have any insight on this?

> Thanks in advance!

> Robert Baker
> Portland, OR



Wed, 23 Jul 2003 04:11:51 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Logon Batch to call a VBS that calls another batch

2. How do I run a .vbs file a NT logon script

3. Converting A Logon Batch to a .VBS script

4. wscript cant find .vbs file from NT logon batch

5. wscript cant find .vbs file from NT logon batch

6. Run a batch file within a VBS???

7. Logon Script - Launched from BATCH file.

8. logon.exe script.vbs in profile (logon script)

9. Getting .vbs script to run at logon..

10. Logon Script (.vbs) will not run on 98.

11. Running Scripting Host Files as Logon Script

12. Unattended logon to run script to start services via a batch file.

 

 
Powered by phpBB® Forum Software