Avatar of Ruroshin
RuroshinFlag for United States of America

asked on 

group policy logoff script not working

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?
Active DirectoryWindows Server 2008Scripting Languages

Avatar of undefined
Last Comment
Ruroshin
Avatar of zgiuffria
zgiuffria

They are under the correct OU right?
Avatar of James
James
Flag of Ireland image

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
ASKER CERTIFIED SOLUTION
Avatar of ThinkPaper
ThinkPaper
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of zgiuffria
zgiuffria

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.
Avatar of ThinkPaper
ThinkPaper
Flag of United States of America image

(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!"
Avatar of Ruroshin
Ruroshin
Flag of United States of America image

ASKER

@zgiuffria how would i check to see if they are under the correct OU?
Avatar of Ruroshin
Ruroshin
Flag of United States of America image

ASKER

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
 
Avatar of zgiuffria
zgiuffria

First..  is the group policy set under user or under computer?  
Avatar of Ruroshin
Ruroshin
Flag of United States of America image

ASKER

@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\
Avatar of Ruroshin
Ruroshin
Flag of United States of America image

ASKER

@zqiuffria user
SOLUTION
Avatar of zgiuffria
zgiuffria

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Ruroshin
Ruroshin
Flag of United States of America image

ASKER

The problem was fixed from an outside source.
Windows Server 2008
Windows Server 2008

Windows Server 2008 and Windows Server 2008 R2, based on the Microsoft Vista codebase, is the last 32-bit server operating system released by Microsoft. It has a number of versions, including including Foundation, Standard, Enterprise, Datacenter, Web, HPC Server, Itanium and Storage; new features included server core installation and Hyper-V.

86K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo