Tech Support > Operating Systems > Windows 2003 > Startup and Logon Scripts
Startup and Logon Scripts
Posted by Keith on February 17th, 2004


If I assign a startup or logon script to a GPO, can it make calls to scripts
outside of the scripts folder? Or more importantly, can it make calls
outside of the container for that particular GPO in the policies folder
(inside sysvol) back to scripts in the scripts folder (inside sysvol)?


Posted by Jimmy Andersson [MVP] on February 17th, 2004


Yes. The only thing it do is run the scripts on the objects within the
linked OUs that has permissions to run it. As long as you specify paths to
other scripts it needs you should be fine.

Regards,
/Jimmy
--
Jimmy Andersson, Q Advice AB
Microsoft MVP - Active Directory
---------- www.qadvice.com ----------


"Keith" <@.> wrote in message news:uZoilNX9DHA.1636@TK2MSFTNGP12.phx.gbl...


Posted by Keith on February 17th, 2004


Thank you

"Jimmy Andersson [MVP]" <jimmy_noSpam_@mvps.org> wrote in message
news:uuh%23TaZ9DHA.2316@TK2MSFTNGP09.phx.gbl...


Posted by Keith on February 18th, 2004


Just tried this and it dodn't work.

I am addign a new stratup script to my GPO and pointing it to my script
(which resides in a subfolder of the scripts folder in sysvol) by UNC.

Script doesn't run!

Any ideas? Am I doing something wrong?

Scripts run fine if the files are placed in the relevant containers within
the GPO profiles.

Thanks

"Jimmy Andersson [MVP]" <jimmy_noSpam_@mvps.org> wrote in message
news:uuh%23TaZ9DHA.2316@TK2MSFTNGP09.phx.gbl...


Posted by Jimmy Andersson [MVP] on February 18th, 2004


I just tried it here and it works for me... It must be something I
misunderstand in your question, but I don't know what that would be....

Can you describe what the scripts are doing?
Can you copy and paste the script?

Regards,
/Jimmy
--
Jimmy Andersson, Q Advice AB
Microsoft MVP - Active Directory
---------- www.qadvice.com ----------


"Keith" <@.> wrote in message news:#uH2Ifh9DHA.3200@TK2MSFTNGP09.phx.gbl...


Posted by Keith on February 18th, 2004


The script is a simple 1-line batch file that calls a registry file (.reg)
with /s for silent install.

If I place the .bat and .reg file together in the following location:

Sysvol\(domain)\policies\(gpo policy)\machine\scripts\startup

and add the batch file as a startup script in GPO the batch file runs fine
and calls the registry file as expected at sratup - no problems at all.

However, if I place the .bat and .reg file in the following location:

Sysvol\(domain)\scripts\registry\
[registry is a sub folder I created to keep things organised]

and add the batch file as a startup script in GPO exactly the same way as
before (just pointing it to this location instead of the other - which
incidentally then references the script by UNC automatically), it doesn't
run on startup.

I want to do it this way so all my scripts are kept in the same place - that
way if I re-use any scripts I do not have to make duplicate copies, I can
simply call them again from the central location.


"Jimmy Andersson [MVP]" <jimmy_noSpam_@mvps.org> wrote in message
news:eBtyJri9DHA.2460@TK2MSFTNGP09.phx.gbl...


Posted by Jimmy Andersson [MVP] on February 18th, 2004


Ok, I'll try this setup in my lab tomorrow (it's 520 PM here) and let you
know.

Regards,
/Jimmy
--
Jimmy Andersson, Q Advice AB
Microsoft MVP - Active Directory
---------- www.qadvice.com ----------


"Keith" <@.> wrote in message news:e8i60Oj9DHA.2480@TK2MSFTNGP10.phx.gbl...


Posted by Keith on February 18th, 2004


Thank you

"Jimmy Andersson [MVP]" <jimmy_noSpam_@mvps.org> wrote in message
news:eQRDxwj9DHA.2608@TK2MSFTNGP10.phx.gbl...


Posted by Jimmy Andersson [MVP] on February 20th, 2004


Just wanted to let you know that I haven't forgot this. I had to go to a
client site, but I'll be back in my office on Monday and will take a look at
this then. Unless someone else have solved it for you by then.

Regards,
/Jimmy
--
Jimmy Andersson, Q Advice AB
Microsoft MVP - Directory Services
---------- www.qadvice.com ----------


"Keith" <@.> wrote in message news:easq9xk9DHA.1592@TK2MSFTNGP10.phx.gbl...


Posted by Keith on February 21st, 2004


Hi

Thanks. I haven't managed to sort this yet.

It would be good to know if this is just me or if you can replicate this.

Thanks

"Jimmy Andersson [MVP]" <jimmy_noSpam_@mvps.org> wrote in message
news:%23BYPs279DHA.2308@TK2MSFTNGP09.phx.gbl...


Posted by msnews.microsoft.com on February 26th, 2004


I just want to comment here. But jimmy is the expert :-)

You can call the VBS file by type the follow in the batch file Csscript
\\server\yourscriptpath\file.vbs


"Keith" <@.> wrote in message news:eDNh8gK#DHA.3032@TK2MSFTNGP10.phx.gbl...


Posted by Jimmy Andersson [MVP] on March 4th, 2004


Hi Keith,

Sorry for the late reply, I've been in Redmond the last week. Have you
sorted it out or should I spend some time with it tomorrow?

Regards,
/Jimmy
--
Jimmy Andersson, Q Advice AB
Microsoft MVP - Directory Services
---------- www.qadvice.com ----------


"Keith" <@.> wrote in message news:eDNh8gK#DHA.3032@TK2MSFTNGP10.phx.gbl...



Similar Posts