Re: Local Policy and logoff scripts

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Darren Mar-Elia (dmanonymous_at_discussions.microsoft.com)
Date: 11/08/04


Date: Mon, 8 Nov 2004 11:37:48 -0800

Drew-
Since scripts policy is one of those that applies cumulatively rather than
"last writer wins", what I would do is delete the script from the local GPO
on all those machines. The easiest way to do that is to write a batch file
that can touch each machine and clear out the contents of
%windir%\system32\groupPolicy\User\Scripts\Logoff. You will still have a
reference to that logoff script in
C:\windows\system32\groupPolicy\User\Scripts\scripts.ini, but if the script
itself isn't found, it will just fail. I would say get rid of scripts.ini
too but if you have a logon script on that local GPO that is still needed,
then you would lose the reference to that by deleting scripts.ini. If you
don't, then just delete scripts.ini as well.

-- 
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Whitepapers and Utilities for all things Group Policy-related
"Drew" <Drew@discussions.microsoft.com> wrote in message 
news:985A4463-2872-4438-A257-BE758C2C6F06@microsoft.com...
> Hello Microsoft, any suggestions would be greatly appreciated.
>
> I have a logoff script which I would like to run on all machines within an
> OU using Group Policy Logoff Script. Before me, someone had gone around 
> and
> added the same logoff script to the local policy. Now if I add the script 
> to
> a GPO, the script runs twice. Once for the local Policy, then again with 
> the
> Domain GPO. How can I prevent the local script from running? 


Relevant Pages

  • Re: scripted logon
    ... Why can't you launch all the scripts from a Group Policy based Logon script. ... Here's the policy settings (I sure hope word wrap doesn't mess it up too ... Windows Components/Windows Installer ...
    (microsoft.public.windows.terminal_services)
  • Re: Group Policy Timeout on one server in an OU.
    ... inheritance of that login script and placed myself in the OU. ... On Error GoTo 0 ... Group Policy Information Hub: ... Group Policy Management solutions athttp://www.sdmsoftware.com ...
    (microsoft.public.windows.group_policy)
  • Re: Startup Bat File
    ... Link the policy at/above where their accounts reside in the AD tree. ... So it looks like it needs to be moved to the logon script within the ... registry settings and such for mapping drives, ... Domain Admins - Read, Write, Create All Child Objects, Delete All ...
    (microsoft.public.windows.group_policy)
  • Re: ScreenSaverGracePeriod
    ... Better add the computers where you like to have the regkey to a separate OU and link the policy to that OU. ... Because it is a startup script it belongs to computers not to users. ... appling that registry entry everytime the computer boots. ... I created a bat file and a registry file and and set it ...
    (microsoft.public.windows.server.active_directory)
  • Re: Local Group Policy - User Logoff Scripts
    ... I looked at the policy for the command prompt and configured as you indicated ... As for the permissions on ... this box and cannot gain access to user account settings on the DC). ... Upon logging off, the script ran perfectly. ...
    (microsoft.public.windows.server.general)