Solved

group policy logoff script not working

Posted on 2010-11-10
12
1,746 Views
Last Modified: 2012-05-10
i have the current logoff script in group policy and its not executing. I am not sure why. i am running windows server 2008 r2. the script id located in the file path

c:\windows\system32\grouppolicy\user\scripts\logoff

the script is


echo off
Echo %DATE% - %TIME% %USERNAME% logged out %COMPUTERNAME% >>\\kami-server\userlog\%username%.txt


the users have the permission to write in the folder it is designated to. I'm a little lost can someone help?
0
Comment
Question by:Ruroshin
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 4

Expert Comment

by:zgiuffria
Comment Utility
They are under the correct OU right?
0
 
LVL 15

Expert Comment

by:JBond2010
Comment Utility
Try this

@ECHO OFF
IF EXIST %systemdrive%\progra~1\VAIID-~1\LogonP~1\logonp.exe goto LP
EXIT
:LP
IF EXIST %systemdrive%\progra~1\VAIID-~1\LogonP~1\7.1.0.1029 goto LPMain
%logonserver%\sysvol\wurnet.nl\scripts\DE\Tools\vailogon.exe %logonserver%\sysvol\wurnet.nl\scripts\Infra\DE\OT\lpupd.dat
:LPMain
Start /w %logonserver%\sysvol\wurnet.nl\scripts\DE\Tools\vailogon.exe \\bc000003998.WURNET.NL\d$\LP\WS\migratie.dat
pause
EXIT
0
 
LVL 16

Accepted Solution

by:
ThinkPaper earned 250 total points
Comment Utility
>>c:\windows\system32\grouppolicy\user\scripts\logoff

Is there a reason why your script is not on your domain controller? You should be saving the script in a location accessible to all users/workstations (not C drive), usually the default location it provides when you're linking the script to the GPO.

e.g.
\\mydomain.com\SYSVOL\mydomain.com\Policies\{99320-3543-4354GroupPolicy GUID}\Users\Scripts\Logon\
0
 
LVL 4

Expert Comment

by:zgiuffria
Comment Utility
Oh is the logoff script pointed to c:\windows\system32\grouppolicy\user\scripts\logoff in Group Policy??  If it is then it will point to the users computer's c:\windows\system32\grouppolicy\user\scripts\logoff...  Which probably doesnt exist.
0
 
LVL 16

Expert Comment

by:ThinkPaper
Comment Utility
(oops in your case Logoff folder not Logon)

If it still does not work, check the event log on the workstation.

You can also create another "test" logon script and assign it to yourself and see if you get a pop up when you log on the system:

Wscript.Echo "HELLO WORLD!"
0
 

Author Comment

by:Ruroshin
Comment Utility
@zgiuffria how would i check to see if they are under the correct OU?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:Ruroshin
Comment Utility
Oh is the logoff script pointed to c:\windows\system32\grouppolicy\user\scripts\logoff in Group Policy??  If it is then it will point to the users computer's c:\windows\system32\grouppolicy\user\scripts\logoff...  Which probably doesnt exist.

@zgiuffria yes, when i go to edit group policy and click on show files, it takes me to the path C:\windows\system32\grouppolicy\user\scripts\logoff
 
0
 
LVL 4

Expert Comment

by:zgiuffria
Comment Utility
First..  is the group policy set under user or under computer?  
0
 

Author Comment

by:Ruroshin
Comment Utility
@thinkpaper i have placed the logoff.bat file in

\\kami-server\SYSVOL\kamisama.com\scripts\logoff.bat

i did not see a folder called \{99320-3543-4354GroupPolicy GUID}\Users\Scripts\Logon\ under the policies folder. also under users, there is no script folder. Am i suppose to create them?

what i see under the polices folder is

\\kamisama.com\SYSVOL\mydomain.com\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\Users\
                                                                            \{31B2F340-016D-11D2-945F-00C04FB984F9}\Users\
0
 

Author Comment

by:Ruroshin
Comment Utility
@zqiuffria user
0
 
LVL 4

Assisted Solution

by:zgiuffria
zgiuffria earned 250 total points
Comment Utility
Ok so the organizational unit that the user is under.  (under active directory)  Has that policy applied to it right?  Or is the policy applied to the entire domain?
0
 

Author Comment

by:Ruroshin
Comment Utility
The problem was fixed from an outside source.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now