[THIN] slow login due to userinit.exe

  • From: Erik Blom <erik.blom@xxxxxxxxxx>
  • To: "thin@xxxxxxxxxxxxx" <thin@xxxxxxxxxxxxx>
  • Date: Tue, 15 Sep 2009 18:37:39 +0200

Hi,

We are experiencing rather slow logons, the most time being taken during the 
"applying registry settings" UI message. After enabling user logon debugging we 
noticed that userinit.exe seems cause a pause of 40 seconds. The following 
snippet taken from the userenv.log file shows this gap:

USERENV(1560.151c) 18:05:36:516 ApplyGroupPolicy: Leaving successfully.
USERENV(1560.1734) 18:05:36:516 GPOThread:  Next refresh will happen in 92 
minutes
USERENV(1560.118c) 18:05:36:516 PolicyChangedThread: Leaving
USERENV(150c.1384) 18:05:36:547 LibMain: Process Name:  
C:\WINDOWS\system32\userinit.exe
USERENV(1560.141c) 18:06:19:016 IsSyncForegroundPolicyRefresh: Synchronous, 
Reason: policy set to SYNC
USERENV(1560.17e0) 18:06:19:031 IsSyncForegroundPolicyRefresh: Synchronous, 
Reason: policy set to SYNC
USERENV(16b4.1558) 18:06:19:094 LibMain: Process Name:  
C:\WINDOWS\system32\userinit.exe
USERENV(1538.1704) 18:06:19:094 LibMain: Process Name:  C:\Program 
Files\Softricity\SoftGrid for Terminal Servers\sftdcc.exe
USERENV(145c.1338) 18:06:19:094 LibMain: Process Name:  
C:\WINDOWS\system32\userinit.exe

Before and after this gap, all seems to be normal (no errors, no gaps).

Other related posts: