Re: Startup and Logon Scripts

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jimmy Andersson [MVP] (jimmy_noSpam__at_mvps.org)
Date: 02/20/04


Date: Fri, 20 Feb 2004 15:20:43 +0100

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...
> Thank you
>
> "Jimmy Andersson [MVP]" <jimmy_noSpam_@mvps.org> wrote in message
> news:eQRDxwj9DHA.2608@TK2MSFTNGP10.phx.gbl...
> > 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...
> > > 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...
> > > > 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...
> > > > > 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...
> > > > > > 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...
> > > > > > > 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)?
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Re: Login Script group membership
    ... Would it be more managable to write this as a vbs instead of a batch file? ... script, as not all o/s's can run a .vbs file directly as a logon script. ... - you'd need to write a wrapper function to invoke ifmember and return the ... In the general case a user can be a member of any number of ...
    (microsoft.public.windows.server.scripting)
  • Re: Win 98 client WSH "Can not find script file"
    ... My theory is that the client unmaps z: before wscript ... more statements to the batch file after the VBScript program is called. ... >> REM ** Execute VBScript logon script program. ...
    (microsoft.public.windows.server.scripting)
  • Re: Command or setting to force monitor on?
    ... Keystrokes vbs script? ... But the same symptoms as without cscript, monitor not waking up, when I ... I set up a batch file containing the commands to first start IE, ... could move to the keystrokes command. ...
    (microsoft.public.windowsxp.general)
  • Re: Loginscript occasionally failing
    ... clients, where the ... >the end of batch file, so the client won't remove Z: ... >run the logon script. ...
    (microsoft.public.windows.server.scripting)
  • Re: Power Management GPO?
    ... Well the 0 exit code is just what the batch file is returning, rather than the powercfg exit code. ... I'm not sure where to point you because when I set the batch file to run at system startup it worked well. ... batch file using powercfg to set all the power settings the way I'd like them to be. ... The script checks for the existance of my batch file in the root of the target PC. ...
    (microsoft.public.windows.group_policy)