Avatar of bambam3434
bambam3434 asked on

Folder Redirection requires refresh for "Desktop" and "My Documents" after 1st logon with roaming profile.

Hi Everyone,

I have a strange problem which has been described on the 'net at various places, but none seem to have a solution.  I've done some investigation to the problem, but have not yet found the cause of the problem.

Description:

-Only 1 server running FILE/PRINT/DC/DHCP/DNS/WINS/Simply Accounting 2008 SQL Server/DELL SERVER MANAGMENT SOFTWARE

-"Application Data", "Desktop", & "My Documents" are being redirected to the user's home path (no problems with redirecting)

-Problem occurs on Windows XP SP2/SP3

-When the user first logs in, and the folders are redirected, a user can create an object on the Desktop (New Test Document.txt) and it will immediately appear on the desktop.  After logging off and logging back on (to the same workstation or any other workstation) the user MUST press F5 to display any newly created/modified objects on the Desktop or in My Documents.

-No Errors in the event log.

-I have 3 or 4 other nearly identically (same folder redirection, GPO's, permissions, etc) setup networks that do not experiance this problem.

-I have determined that SMB communication from the server is responsible for sending folder update information to all workstation that the user is logged in (the user is logged into 2 workstations and creates a "New Text Document.txt" on one and will show up on the other workstation almost immediately)

-On the network that IS working properly, renaming "New Text Document.txt" will have QUERY_PATH_INFO SMB traffic (4 times with the new file name)
SMB Traffic: --> (to server) <-- (to workstation)
--> Rename Request, Old Name: \DESKTOP PATH\New Text Document, New Name: \DESKTOP PATH\New Name.txt
<-- Rename Response
<--NT Trans Response, NT NOTIFY
........
-->Trans2 Request, QUERY_PATH_INFO, Query File Basic Info, Path: \DESKTOP PATH\New Name.txt
<-- Trans2 Response, QUERY_PATH_INFO
...4X

- On the network that IS NOT working properly, renaming "New Test Document.txt" will NOT have QUERY_PATH_INFO SMB traffic UNTIL the F5 Key is pressed (seem like it "forgets" to query for more information?)

SMB Traffic: --> (to server) <-- (to workstation)
--> Rename Request, Old Name: \DESKTOP PATH\New Text Document, New Name: \DESKTOP PATH\New Name.txt
<-- Rename Response
<--NT Trans Response, NT NOTIFY

....and then nothing more...

PRESS F5

-->Trans2 Request, QUERY_PATH_INFO, Query File Basic Info, Path: \DESKTOP PATH\New Name.txt
<-- Trans2 Response, QUERY_PATH_INFO
...4X

And the desktop is properly updated.

Logging off, deleting the roaming profile and loggin in for the first time again with a new profile resolves this issue, until the user logs off and logs back in again.

The network works great otherwise, but this is a really annoying problem that needs to be resolved.

Thanks,
Microsoft Legacy OSWindows Server 2003Windows XP

Avatar of undefined
Last Comment
Gastone Canali

8/22/2022 - Mon
matrixnz

If you're using roaming profiles, why do you need folder redirection?  Wouldn't that defeat the purpose of having the roaming profile?

Either way it does sound like the issue is related to the connectivity between the computer and the network, folder redirection basically uses the "Shell Folders/User Shell Folders" in registry to point to a the redirected path.  Have you switched on "Always wait for the network at computer startup and logon" found in Group Policy under "Computer Configuration\Administrative Templates\System\Logon\" the user maybe logging on too early before the network path is available.

Cheers
ASKER
bambam3434

I use folder redirection to keep the "high volume" objects, namely Application Data, Desktop and My Documents, out of the profile portion to speed up logon times when users move around to other workstations.  This keeps the roaming portion down to 3-10MB whereas the rest of the "high volume" folders can get into the GB range (and makes roaming painful if left in the profile).

"Always wait for the network at computer startup and logon" is enabled.  

I've been investigating the SMB packets some more and have found that when a user logs in with a fresh profile, the SMB "system" works slightly differently than when the user logs in the second time.  Here's what I've found

When creating "New Folder" on the desktop of Computer #2 (logon #1 on computer #1)

Monitoring SMB on computer #1 while creating "New Folder" on the Desktop of computer #2

[Both Computer #1 and Computer #2 and behaving 100% normal at this point]

SMB Traffic on Computer #1: --> (to server) <-- (to workstation)
<-- NT Trans Response, NT NOTIFY: {Action: ADDED (object was added (1)} .......
--> NT Trans Request, NT NOTIFY, FID: 0x0007
<-- microsoft-ds > imb-abtact [ACK] ..........
--> Trans2 Request, QUERY_PATH_INFO, Query Basic Info, Path \DESKTOP PATH
<-- Trans2 Response, QUERY_PATH_INFO
--> Trans2 Request, FIND_FIRST2, Pattern: \DESKTOP PATH\*
<-- Trans2 Response, FIND_FIRST2, Files: ... New Folder
At this point, the "New Folder" will automatically appear on Computer #1.
- Log off Computer #1
- Log on to Computer #1

When creating "New Folder" on the desktop of Computer #2 (logon #2 on computer #1)

Monitoring SMB on computer #1 while creating "New Folder" on the Desktop of computer #2
SMB Traffic on Computer #1: --> (to server) <-- (to workstation)
<-- NT Trans Response, NT NOTIFY: {Action: ADDED (object was added (1)} .......
--> NT Trans Request, NT NOTIFY, FID: 0x4019
<-- NT Trans Response, NT NOTIFY: {Action: ADDED (object was added (1)} ....... (Second Time!)
--> edb-server1 > microsoft-ds [ACK] ...
<-- microsoft-ds > edb-server1 [ACK] ...
--> NT Trans Request, NT NOTIFY, FID: 0x8016
<-- microsoft-ds > edb-server1 [ACK] ...

Nothing else happens, until F5 is pressed, and then:

--> Trans2 Request, QUERY_PATH_INFO, Query Basic Info, Path \DESKTOP PATH
<-- Trans2 Response, QUERY_PATH_INFO
--> Trans2 Request, FIND_FIRST2, Pattern: \DESKTOP PATH\*
<-- Trans2 Response, FIND_FIRST2, Files: ... New Folder
... And the folder appears.

Please also note that Computer #2 is working 100% normally when the new folder is created.  The folder appears immediately on the desktop.

Now if I go and delete my roaming profile (namely NTUSER.DAT) and download the default profile again, everything works normally.

Thanks for the help!
ASKER CERTIFIED SOLUTION
Gastone Canali

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes