Steve
2003-09-09 20:05:43 UTC
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
\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
.
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
.