We help IT Professionals succeed at work.

User session not terminating properly causes group policy to not apply.

GFCU
GFCU used Ask the Experts™
on
I am having difficulties with GP applying to clients.  I see that the resultant set of policies are good on the local side, however the policies never go into effect until I install UPHClean-Setup.msi, run gpupdate /force, reboot and login.  Any thoughts aside from puching this install down to all clients?  XP, Server 2003 envir.  Thanks!!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010

Commented:
Any errors in event vwr \application or system ?
Top Expert 2010

Commented:

Author

Commented:
Already using GPMC.  ;)

No errors using evt vwr.

Client side: policy has been applied successfully, via gpresult.  However policy(s) do not take until UPHClean-Setup.msi is ran on client.  Shouldn't have to run this.
Top Expert 2010

Commented:
What other tools did you try - gpresult etc ?

Lets think in sync - instead of duplicating our efforts.

Author

Commented:
not sure what you mean....
Top Expert 2010

Commented:
I mean did you try out any other commands to test if your GP is deployed on workstations.

commands like
gpresult
gpupdate /force etc.

I am trying to understand what commands you tried -- which didnt solve this problem.
Top Expert 2010

Commented:
You might also try to enable some group policy logging:

Hive: HKEY_LOCAL_MACHINE
Key: SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system
Name: VerboseStatus
Type: REG_DWORD
Value: 1 default=0
Note: Status messages will not display if the following key is present and the value is set to 1: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableStatusMessages

2) Reboot disconnected.  Note the time.  Watch the status messages to see where it is hanging.
3) After it finally boots, check the Event Log for relevant messages that were logged during the boot process and post them here if you can't identify the problem from the verbose messages and Event log errors.


Having problems with login scripts and Group Policies? You can enable verbose logging to track all changes and settings applied using Group Policy and its extension to the local computer and to users who log on to the computer. The log file, userenv.log, will be written into the %windir%\debug folder. This folder is a hidden folder. To enable verbose logging (Userenv.log):

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\Windows NT\Current Version\Winlogon
Name: UserenvDebugLevel
Type: REG_DWORD
Set UserenvDebugLevel=30002 is for verbose logging, UserenvDebugLevel=30001 is for errors and warnings only, and UserenvDebugLevel=30000 logs nothing.

Author

Commented:
Those are the only two tools I ran.  I used the z switch on the gpresult tool.
Top Expert 2010

Commented:
Did you try the steps suggested by digitap ?
Let me know what comes-up from verbose logging.

thanks

Author

Commented:
You'll see below (from the userenv.log file) that there is an issue with unmounting the hive, when I ran this utility: UPHClean-Setup.msi, it cleaned this up.  see this link: http://www.microsoft.com/downloads/details.aspx?FamilyId=1B286E6D-8912-4E18-B570-42470E2F3582&displaylang=en

how can I fix this so that I dont have to run this on EVERY machine?

USERENV(2f0.2f4) 19:35:57:015 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 19:35:57:015 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 19:35:57:015 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 13:05:49:476 MyRegUnLoadKey:  Failed to unmount hive 00000005
USERENV(2f0.2f4) 13:05:49:476 DumpOpenRegistryHandle: 2 user registry Handles leaked from \Registry\User\S-1-5-21-1322155189-758451978-421607344-500
USERENV(2f0.2f4) 13:05:49:476 UnloadUserProfileP: Didn't unload user profile <err = 5>
USERENV(2f0.2f4) 13:05:49:476 MyRegUnLoadKey:  Failed to unmount hive 00000005
USERENV(2f0.2f4) 13:05:49:476 UnLoadClassHive: failed to unload classes key with 5
USERENV(2f0.2f4) 13:05:49:476 DumpOpenRegistryHandle: 2 user registry Handles leaked from \Registry\User\S-1-5-21-1322155189-758451978-421607344-500_Classes
USERENV(2f0.2f4) 13:05:49:476 ReportError: Impersonating user.
USERENV(2f0.2f4) 13:06:48:062 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 13:06:48:062 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 13:06:48:062 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(31c.490) 13:24:29:652 UnloadUserProfile: received a NULL hProfile.
USERENV(2f0.2f4) 13:25:55:112 MyRegUnLoadKey:  Failed to unmount hive 00000005
USERENV(2f0.2f4) 13:25:55:112 DumpOpenRegistryHandle: 2 user registry Handles leaked from \Registry\User\S-1-5-21-1322155189-758451978-421607344-500
USERENV(2f0.2f4) 13:25:55:112 UnloadUserProfileP: Didn't unload user profile <err = 5>
USERENV(2f0.2f4) 13:25:55:354 UnloadUserProfile: UnloadUserProfileP failed with 0
USERENV(2f0.2f4) 13:26:37:359 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 13:26:37:375 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 13:26:37:375 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.a80) 14:58:29:942 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.7cc) 16:52:29:943 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c4) 18:38:29:862 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e50) 20:26:29:853 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b98) 22:06:29:887 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f7c) 23:38:29:922 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.974) 01:19:29:969 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cf0) 03:07:29:925 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.820) 05:03:29:788 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c4) 06:47:29:816 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.528) 08:38:29:877 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.a20) 10:08:29:779 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f68) 11:58:29:765 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c34) 13:39:29:809 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.26c) 15:12:30:017 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d08) 16:47:30:017 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.7b8) 18:31:30:183 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.210) 20:16:30:207 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cc0) 22:12:30:221 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.994) 23:49:30:873 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.bfc) 01:31:31:028 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fd8) 03:16:31:176 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.910) 05:01:31:357 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f60) 06:57:31:155 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d58) 08:56:31:178 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.6a0) 10:36:30:902 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.db8) 12:08:30:971 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fa8) 13:51:31:086 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.914) 15:46:31:202 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.268) 17:22:31:184 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.de8) 19:21:31:304 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ba8) 21:01:31:168 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.67c) 22:45:31:209 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.efc) 00:40:31:007 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f4) 02:38:30:923 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cf8) 04:13:31:268 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.620) 05:57:31:232 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.7e4) 07:34:31:227 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.43c) 09:20:31:201 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.eb8) 10:59:31:176 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f14) 12:47:31:115 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.990) 14:42:31:194 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.6b8) 16:21:31:200 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.9dc) 17:54:31:189 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.bec) 19:50:31:219 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e48) 21:43:31:255 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.994) 23:33:31:298 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e98) 01:20:31:458 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.850) 02:53:31:666 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.920) 04:28:31:650 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ce8) 06:26:31:659 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.4dc) 08:06:30:103 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c4) 09:37:30:159 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fb8) 11:34:30:171 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.940) 13:12:30:117 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.700) 14:42:30:300 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.314) 16:13:29:158 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ed8) 17:44:29:208 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.984) 19:28:29:241 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b08) 21:09:29:267 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b7c) 23:02:29:150 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.5c4) 00:33:29:328 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.220) 02:06:30:068 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c50) 03:41:30:094 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d70) 05:12:30:146 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.a28) 07:10:30:126 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.26c) 09:05:30:114 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.440) 10:57:31:004 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.a98) 12:28:31:056 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.7c8) 14:26:31:036 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c40) 16:21:30:898 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8b0) 18:08:30:798 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.498) 20:03:31:257 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.910) 21:51:31:185 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.354) 23:32:31:132 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b18) 01:07:30:971 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.3a8) 02:46:30:892 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.230) 04:32:31:310 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.1f0) 06:10:31:287 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.52c) 07:57:31:203 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8e8) 09:37:31:168 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c9c) 11:26:31:032 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.640) 13:07:30:948 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ff0) 14:55:30:892 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d74) 16:38:30:974 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e98) 18:20:30:888 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.94c) 20:10:30:779 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ef4) 22:07:30:762 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.afc) 00:01:30:799 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e50) 01:39:30:786 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c88) 03:27:30:636 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.224) 05:05:30:576 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8a8) 06:36:30:643 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fec) 08:20:32:555 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b60) 09:53:32:727 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.a50) 11:28:32:784 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c08) 12:59:32:727 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.9cc) 14:54:32:699 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fec) 16:30:32:722 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.be0) 18:17:33:800 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.7e4) 19:51:33:969 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.9f0) 21:27:33:992 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8f4) 23:14:33:986 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.610) 01:12:34:090 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f10) 02:42:34:704 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.99c) 04:39:34:827 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d08) 06:24:34:873 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.85c) 08:07:34:924 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c30) 09:48:35:074 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ecc) 11:31:35:819 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.efc) 13:01:35:764 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8f8) 14:39:35:735 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c20) 16:11:35:832 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.a98) 17:57:35:906 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.bbc) 19:42:35:983 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e4c) 21:41:36:182 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.43c) 23:15:36:257 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.944) 00:47:36:322 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.378) 02:32:36:337 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8f8) 04:13:36:347 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.2cc) 06:06:36:921 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.724) 07:40:36:856 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8b0) 09:21:36:850 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.77c) 10:58:36:933 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8dc) 12:49:36:979 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.708) 14:24:37:004 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b38) 16:10:37:001 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.938) 18:07:36:905 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d14) 19:43:36:819 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.164) 21:41:36:689 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.1bc) 23:16:36:668 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d48) 00:46:36:489 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c88) 02:18:36:538 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e4c) 04:17:36:422 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.bcc) 06:09:36:308 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.460) 07:39:36:238 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.824) 09:30:38:000 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.478) 11:06:38:008 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f4) 12:38:38:339 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fc4) 14:18:38:351 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.864) 16:09:38:287 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.748) 17:55:39:317 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.7a4) 19:25:39:451 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.270) 21:10:39:341 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.178) 22:47:39:268 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.820) 00:32:39:204 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cdc) 02:25:39:182 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fbc) 04:00:39:796 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f1c) 05:47:39:680 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8d8) 07:26:39:586 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cec) 08:57:39:529 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fa8) 10:35:39:328 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d58) 12:16:39:804 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.52c) 13:49:39:945 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c88) 15:22:40:007 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fa8) 17:08:40:035 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.758) 19:06:39:796 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.92c) 20:52:40:010 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.aa4) 22:30:40:842 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d24) 00:26:40:593 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.5a8) 02:25:40:445 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ec8) 04:16:40:319 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.6d4) 05:59:40:680 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cb4) 07:50:40:984 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8a4) 09:42:40:902 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.5d4) 11:13:40:845 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.80c) 12:51:40:753 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.a30) 14:21:40:637 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.814) 15:56:40:491 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.a1c) 17:51:40:385 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.acc) 19:39:40:266 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.db8) 21:19:40:169 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.bac) 22:50:40:096 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e00) 00:43:39:980 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.9ac) 02:14:39:907 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.910) 04:07:40:401 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f28) 05:47:40:319 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.6cc) 07:34:40:297 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.80c) 09:17:41:226 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.eec) 10:52:41:871 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.6cc) 12:48:41:731 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.86c) 14:36:41:769 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f00) 16:07:41:868 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c50) 17:52:41:789 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ca4) 19:30:42:260 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.92c) 21:00:42:346 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.bdc) 22:58:42:248 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c40) 00:34:42:224 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c50) 02:05:42:042 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.944) 03:38:42:621 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.354) 05:23:42:663 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e48) 07:19:42:648 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.6d0) 09:12:42:548 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.228) 10:58:42:529 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cec) 12:39:43:042 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c90) 14:33:43:036 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b18) 16:19:42:923 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.284) 17:57:42:878 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.aec) 19:28:42:821 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.ef8) 21:22:42:702 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.590) 23:08:43:151 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d60) 00:46:43:075 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f1c) 02:31:43:184 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.eec) 04:17:43:180 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f80) 06:14:43:147 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.698) 07:52:43:662 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.2f4) 08:25:30:137 MyRegUnLoadKey:  Failed to unmount hive 00000005
USERENV(2f0.2f4) 08:25:30:137 DumpOpenRegistryHandle: 3 user registry Handles leaked from \Registry\User\S-1-5-21-1322155189-758451978-421607344-500
USERENV(2f0.2f4) 08:25:30:137 UnloadUserProfileP: Didn't unload user profile <err = 5>
USERENV(2f0.2f4) 08:25:30:137 MyRegUnLoadKey:  Failed to unmount hive 00000005
USERENV(2f0.2f4) 08:25:30:137 UnLoadClassHive: failed to unload classes key with 5
USERENV(2f0.2f4) 08:25:30:137 DumpOpenRegistryHandle: 2 user registry Handles leaked from \Registry\User\S-1-5-21-1322155189-758451978-421607344-500_Classes
USERENV(2f0.2f4) 08:25:30:137 ReportError: Impersonating user.
USERENV(2f0.2f4) 08:26:32:531 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 08:26:32:546 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 08:26:32:546 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.f50) 10:24:22:447 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.1b0) 11:58:21:408 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b30) 13:54:21:584 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.63c) 15:27:21:281 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.bc8) 17:22:21:494 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.510) 18:55:21:226 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fa8) 20:39:21:462 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e18) 22:34:21:620 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.6ec) 00:24:22:055 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.500) 02:09:22:528 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e0c) 04:07:21:745 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.2cc) 06:02:22:196 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b30) 07:53:22:111 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.918) 09:27:22:234 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fdc) 11:03:22:108 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.754) 12:46:22:388 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c1c) 14:41:22:778 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.698) 16:36:22:569 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b18) 18:12:22:814 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.774) 20:00:22:641 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fa8) 21:40:23:153 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d44) 23:12:23:306 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.8a8) 00:52:23:720 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.604) 02:35:23:853 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e18) 04:10:24:113 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c34) 05:41:24:375 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b54) 07:39:24:626 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cb8) 09:34:23:830 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.a68) 11:24:23:989 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.484) 13:10:24:136 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.e10) 15:04:23:386 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.640) 16:38:23:997 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fb0) 18:11:24:077 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.c54) 19:51:24:134 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.af0) 21:39:24:212 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.1d8) 23:34:23:502 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.844) 01:08:24:284 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.dcc) 02:47:24:373 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.594) 04:19:24:454 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fe8) 05:59:24:574 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.b50) 07:49:24:681 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.678) 09:47:24:567 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.4b4) 11:29:24:871 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.d4c) 13:13:25:095 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.2f4) 15:09:16:711 MyRegUnLoadKey:  Failed to unmount hive 00000005
USERENV(2f0.2f4) 15:09:16:711 DumpOpenRegistryHandle: 2 user registry Handles leaked from \Registry\User\S-1-5-21-1322155189-758451978-421607344-500
USERENV(2f0.2f4) 15:09:16:711 UnloadUserProfileP: Didn't unload user profile <err = 5>
USERENV(2f0.2f4) 15:09:16:946 UnloadUserProfile: UnloadUserProfileP failed with 0
USERENV(2f0.2f4) 15:24:22:343 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 15:24:22:359 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 15:24:22:359 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 08:50:32:988 MyRegUnLoadKey:  Failed to unmount hive 00000005
USERENV(2f0.2f4) 08:50:32:988 DumpOpenRegistryHandle: 2 user registry Handles leaked from \Registry\User\S-1-5-21-1322155189-758451978-421607344-500
USERENV(2f0.2f4) 08:50:32:988 UnloadUserProfileP: Didn't unload user profile <err = 5>
USERENV(2f0.2f4) 08:50:33:019 MyRegUnLoadKey:  Failed to unmount hive 00000005
USERENV(2f0.2f4) 08:50:33:019 UnLoadClassHive: failed to unload classes key with 5
USERENV(2f0.2f4) 08:50:33:019 DumpOpenRegistryHandle: 2 user registry Handles leaked from \Registry\User\S-1-5-21-1322155189-758451978-421607344-500_Classes
USERENV(2f0.2f4) 08:50:33:019 ReportError: Impersonating user.
USERENV(2f0.2f4) 08:57:20:484 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 08:57:20:500 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.2f4) 08:57:20:500 CUserProfile::CleanupUserProfile: Ref Count is not 0
USERENV(2f0.eb8) 16:00:20:058 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.cdc) 17:48:20:162 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.f00) 19:43:20:371 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.fc0) 21:35:20:582 PolicyChangedThread: UpdateUser failed with 1008.
USERENV(2f0.abc) 23:24:20:904 PolicyChangedThread: UpdateUser failed with 1008.
Top Expert 2010
Commented:
I install the hive cleanup tool on all my workstations as a standard.  I don't have the consistent issues that you see, but it's always the first thing I reach for when users have mysterious profile issues.

The issue you are seeing is resolved using the hive cleanup tool.
Top Expert 2010
Commented:
I suppose you could install the utility via the login script using switches with the exe.

Author

Commented:
so there's no other way around this??.....

windows is incapable of completely terminating the user's session???
Top Expert 2010

Commented:
I believe that the hive cleanup tool released by Microsoft, was an afterthought.  It was out before SP3 was released and I don't know why it wasn't integrated as part of that.  It's frustrating...I know.

Essentially, when XP logs off the user for a restart/shutdown, some of the applications have areas of the registry open.  As you know, the registry is really a flat file, so those applications are keeping it open.  This prevents Windows from saving the registry properly.  The cleanup tool runs as a service and properly closes all those handles keeping the registry open so Windows can shut down.

I'll let others chime in, but that's my opinion.....not a good one, I know.
Top Expert 2010

Commented:
Let me know if you can deploy this as part of Software installation in computer configuration part of  the GPO.

I am really interested to see how this plays out. please share userenv.log post deployment.

thanks

Author

Commented:
Thanks for your help digitap, looks like I'll be modifying my logon script.
Top Expert 2010

Commented:
sorry i didn't have better news...good luck

@sunny :: i don't know if it could be deployed using software deployment via the gpo...i've never done that, but it would be a lot easier than trying to deploy via a login script.  to deploy it, i bet you'd need a transform file. there's probably a msi out there somewhere, but all i've ever seen is an exe.
Top Expert 2010

Commented:
Thanks Digitap. That's something which I will have to explore on my own.

I will save this case for my reference - as I believe this maybe one of the most common scenarios for GPO not applying after you tried >> gpresult or gpupdate /force.
Top Expert 2010

Commented:
@sunnyc7 ::  Yes...that's why I've made installing this software common practice.  I'm truly and honestly surprised that Microsoft hasn't made it part of the OS for XP or at least a Windows Update.  Anyway, who am I?  It's not like I have Bill Gates calling ME for advice!

@GFCU :: Thanks for the points!  Glad we could help...