
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