Discussion:
VBS Login Script Will Not Run...
(too old to reply)
Steve
2003-09-09 20:05:43 UTC
Permalink
You could try this put the login.bat in the %logonserver%
\netlogon folder then you can call the file this way
cscript %0\..\Login.vbs
or
cscript %logonserver%\netlogon

Hope that helps

Steve
-----Original Message-----
I have created a login script, LOGIN.VBS, and placed it
in the \SYSVOL\<domain>\Policies\<Group Pol
GUID>\User\Scripts\Logon directory. I then configured
the Group Policy and associated it with the OU which I
wanted to execute it. It worked as planed, for the most
part.
Not comes the problem I cannot seem to get passed. There
are many workstations on our network that users in this
OU access, which have for security reasons been
configured not to have the .vbs extension associated with
cscript/wscript. Needless to say the login script does
not execute. I have tried creating a batch file,
LOGIN.BAT, in the same location as the script file on the
Domain Controller and have it execute "CSCRIPT.EXE
LOGIN.VBS", but this doesn't seem to work either. I
believe this is because Cscript is being executed locally
on the workstation and it doesn't know where the
logon.vbs script file is located.
Has anyone out there been down this road before, or know
of another way I can get this VBS script to run at logon?
TIA,
Kendall R Buller
System Administartor - USDA
.
Steve
2003-09-09 20:12:22 UTC
Permalink
oops full path

cscript %logonserver%\netlogon\Login.vbs
-----Original Message-----
You could try this put the login.bat in the %logonserver%
\netlogon folder then you can call the file this way
cscript %0\..\Login.vbs
or
cscript %logonserver%\netlogon
Hope that helps
Steve
-----Original Message-----
I have created a login script, LOGIN.VBS, and placed it
in the \SYSVOL\<domain>\Policies\<Group Pol
GUID>\User\Scripts\Logon directory. I then configured
the Group Policy and associated it with the OU which I
wanted to execute it. It worked as planed, for the most
part.
Not comes the problem I cannot seem to get passed.
There
are many workstations on our network that users in this
OU access, which have for security reasons been
configured not to have the .vbs extension associated
with
cscript/wscript. Needless to say the login script does
not execute. I have tried creating a batch file,
LOGIN.BAT, in the same location as the script file on
the
Domain Controller and have it execute "CSCRIPT.EXE
LOGIN.VBS", but this doesn't seem to work either. I
believe this is because Cscript is being executed
locally
on the workstation and it doesn't know where the
logon.vbs script file is located.
Has anyone out there been down this road before, or know
of another way I can get this VBS script to run at logon?
TIA,
Kendall R Buller
System Administartor - USDA
.
.
Richard Mueller [MVP]
2003-09-09 22:46:59 UTC
Permalink
Hi,

I find even if you use Group Policy to run the logon script, a batch file
will launch the *.vbs logon script in the same folder with this syntax:

wscript %0\..\Login.vbs

You can use cscript or wscript. Both the *.bat and the *.vbs must be in the
policy folder you mentioned.
--
Richard
Microsoft MVP Scripting and ADSI
HilltopLab web site - http://www.rlmueller.net
--
Post by Steve
You could try this put the login.bat in the %logonserver%
\netlogon folder then you can call the file this way
cscript %0\..\Login.vbs
or
cscript %logonserver%\netlogon
Hope that helps
Steve
-----Original Message-----
I have created a login script, LOGIN.VBS, and placed it
in the \SYSVOL\<domain>\Policies\<Group Pol
GUID>\User\Scripts\Logon directory. I then configured
the Group Policy and associated it with the OU which I
wanted to execute it. It worked as planed, for the most
part.
Not comes the problem I cannot seem to get passed. There
are many workstations on our network that users in this
OU access, which have for security reasons been
configured not to have the .vbs extension associated with
cscript/wscript. Needless to say the login script does
not execute. I have tried creating a batch file,
LOGIN.BAT, in the same location as the script file on the
Domain Controller and have it execute "CSCRIPT.EXE
LOGIN.VBS", but this doesn't seem to work either. I
believe this is because Cscript is being executed locally
on the workstation and it doesn't know where the
logon.vbs script file is located.
Has anyone out there been down this road before, or know
of another way I can get this VBS script to run at logon?
TIA,
Kendall R Buller
System Administartor - USDA
.
Loading...