Guest Jeff Clegg Posted July 8, 2008 Posted July 8, 2008 <-- Copy from microsoft.public.windows.server.terminalservices JC --> Hi there. I'm troubleshooting some problems we're seeing with slow logons to TS Servers over the WAN. I've enabled userenv logging and am focusing in on a delay during the logon regarding CopyProfileDirectoryEx. Snippet from userenv.log : USERENV(17c.a04) 08:05:20:466 FindTotalDiskSpaceNeeded: Largest 7 file size is 31323818 USERENV(17c.a04) 08:05:20:466 Available 693395968 USERENV(17c.a04) 08:05:20:466 Needed 128652920 USERENV(17c.a04) 08:05:20:466 Src size 85633382 USERENV(17c.a04) 08:05:20:466 Dest size 0 USERENV(17c.a04) 08:05:20:466 Largest hive file 2097152 USERENV(17c.a04) 08:05:20:528 CopyProfileDirectoryEx: Found hive file NTUSER.DAT USERENV(17c.a04) 08:06:07:622 ReconcileFile: E:\userDir\userDir\userName\PROFILE\NTUSER.DAT ==C:\Documents and Settings\userName\NTUSER.DAT [OK] USERENV(17c.a04) 08:06:07:622 CopyProfileDirectoryEx: Found hive file ntuser.dat.LOG USERENV(17c.a04) 08:06:07:685 CopyProfileDirectoryEx: Found hive file ntuser.ini USERENV(17c.a04) 08:06:08:279 ReconcileFile: E:\userDir\userDir\userName\PROFILE\ntuser.ini ==C:\Documents and Settings\userName\ntuser.ini [OK] USERENV(17c.a04) 08:06:08:279 CopyProfileDirectoryEx: Found hive file ntuser.pol USERENV(17c.a04) 08:06:09:029 ReconcileFile: Unable to open temporary file USERENV(17c.a04) 08:06:09:029 ReconcileFile: E:\userDir\userDir\userName\PROFILE\ntuser.pol ==C:\Documents and Settings\userName\ntuser.pol [OK] USERENV(17c.a04) 08:06:09:029 CopyProfileDirectoryEx: Calling ReconcileDirectory for all Directories USERENV(17c.a04) 08:08:26:390 CopyProfileDirectoryEx: Reconcile Directory Done for all Directories I've been trying limit the files/dirs that are contained in the Roaming Profile but compared to the 1:20 or so this function takes, the file copy/reconciliation is taking only 10-20 secs. I've testing this on both Windows 2K3 SP1 and SP2 machines. I'm assuming the hotfix contained in KB899409 is included in SP2 since the version of ntlanman.dll is way higher than the hotfix. I've cranked up userenv to 30002 but that doesn't give me anything more than 10002 ? Does anyone have any ideas or suggestions ? Thanks, JC
Recommended Posts