How do I run a .vbs file a NT logon script 
Author Message
 How do I run a .vbs file a NT logon script

I have a logon.vbs script that maps drives for my NT 4.0 domain users. How
do I run it as a logon script? It runs ok when I double click it but nothing
happens in the logon script. I understand that NT won't run .vbs files as a
logon script is this correct? If so then how do I run it. The other thing is
that I need this script to run in the background, or at the very least as a
minimized window.
I can do it by running a file logon.bat in the logon script that
does.."Start /min logon1.bat: Exit"
Logon1.bat calls the logon.vbs file in a minimized window. Is there a better
way?
Please can anyone help me?
Thanks
PG


Mon, 02 Dec 2002 03:00:00 GMT  
 How do I run a .vbs file a NT logon script
Go to the NETLOGON share (usually, \WINNT\SYSTEM32\REPL\IMPORT\SCRIPTS), and
there are the logon scripts of the useres. Simply edit them and put the line
wscript \scriptpath\scriptname


Quote:
> I have a logon.vbs script that maps drives for my NT 4.0 domain users. How
> do I run it as a logon script? It runs ok when I double click it but
nothing
> happens in the logon script. I understand that NT won't run .vbs files as
a
> logon script is this correct? If so then how do I run it. The other thing
is
> that I need this script to run in the background, or at the very least as
a
> minimized window.
> I can do it by running a file logon.bat in the logon script that
> does.."Start /min logon1.bat: Exit"
> Logon1.bat calls the logon.vbs file in a minimized window. Is there a
better
> way?
> Please can anyone help me?
> Thanks
> PG



Mon, 02 Dec 2002 03:00:00 GMT  
 How do I run a .vbs file a NT logon script
Every user calls logon.bat which has this inside it:

Echo Please Wait...................

If "%OS%" == "Windows_NT" goto WINNT
call wscript.exe %0\..\logon.vbs
dir c:\windows\system /s >null
call %0\..\smslogon.bat
goto EXIT
:WINNT
start /min wscript.exe %0\..\logon.vbs
call %0\..\smslogon.bat
:EXIT

Works like a charm


Quote:
> I have a logon.vbs script that maps drives for my NT 4.0 domain users. How
> do I run it as a logon script? It runs ok when I double click it but
nothing
> happens in the logon script. I understand that NT won't run .vbs files as
a
> logon script is this correct? If so then how do I run it. The other thing
is
> that I need this script to run in the background, or at the very least as
a
> minimized window.
> I can do it by running a file logon.bat in the logon script that
> does.."Start /min logon1.bat: Exit"
> Logon1.bat calls the logon.vbs file in a minimized window. Is there a
better
> way?
> Please can anyone help me?
> Thanks
> PG



Mon, 02 Dec 2002 03:00:00 GMT  
 How do I run a .vbs file a NT logon script
Theoretically, you can work round this problem with .vbs scripts. My
experience has been otherwise.

As you need to install the Scripting engine on the local host anyway,
try this:

Store the vbs script you want to run locally on the local machine.
Write a logon .bat, store it as usual on NTLOGON.

This .bat file should call the locally stored .vbs script upon logon.
This WILL work.

ColinR



Quote:
> Go to the NETLOGON share (usually,

\WINNT\SYSTEM32\REPL\IMPORT\SCRIPTS), and
Quote:
> there are the logon scripts of the useres. Simply edit them and put
the line
> wscript \scriptpath\scriptname



> > I have a logon.vbs script that maps drives for my NT 4.0 domain
users. How
> > do I run it as a logon script? It runs ok when I double click it
but
> nothing
> > happens in the logon script. I understand that NT won't run .vbs
files as
> a
> > logon script is this correct? If so then how do I run it. The
other thing
> is
> > that I need this script to run in the background, or at the very
least as
> a
> > minimized window.
> > I can do it by running a file logon.bat in the logon script that
> > does.."Start /min logon1.bat: Exit"
> > Logon1.bat calls the logon.vbs file in a minimized window. Is
there a
> better
> > way?
> > Please can anyone help me?
> > Thanks
> > PG



Mon, 02 Dec 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Running VBS Script Via Logon Batch File

2. Run WSH logon script before NT shell starts?

3. W2k Pro not running NT 4 Logon Script

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

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

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

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

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

9. Running Scripting Host Files as Logon Script

10. How to script an update to a file upon logon to NT

11. Running a .vbs script from within a .vbs script

12. Calling *.vbs files to Run From Master VBS File

 

 
Powered by phpBB® Forum Software