Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Microsoft-Windows-Folder Redirection Error 502. CSC database locked by another user

$
0
0

Dear all,

We are finalizing our Windows 7 migration where we migrated 500+ clients. In our enterprise concept we implemented RUP (Roaming User Profiles) and Redirected Folders for all users. The Redirected Folders have been by enabled by a single GPO which redirects all folders fromAppData toSearches \\servername.domain.name\documents$\%username%.

Problem:
The RUP and Redirected folders solution works fine until a new user wants to logon. This new user has been migrated to RUP and Redirected on another system and he just wants to work on another workplace or gets a temporary pc. What happens is that redirected folders do not work. The user gets a message that the folder is not reachable and desktop is empty.

Troubleshooting:
Soon I found out that something was being locked. If we used a user account which had working Redirect Folders than thisworked for that user. An event of 10 was logged in OfflineFiles area of EventViewer to reconnect the path which was configured in the GPO.

This is example screenshot. It says "Error on Open Folder. \\server.domain.name\documents$\%username%\Desktop refers to a location that is unavailable. It could be on a hard disk on this computer, or a on a network. Check to make sure that the disk is properly inserted, or that you are connected to the Internet or your network, and then try again. If it still cannot be located, the information might have been moved to a different location."

These symptoms happen randomly and not on all workstations. The pain here is when it happens on a portable computer. For desktop we disabled the "Disable Offline Files' in "Manage Offline Files" control panel and then reboot. After the reboot the folders are directedand it works without these errors... On portable computer we can't use this work around as they need to work offline.

If I connect to the share without the FQDN like \\servername\documents$\%username%\Desktop than this works fine and user can access all folders. When I try the FQDN path which is configured in the GPO to redirect user to like \\servername.domain.name\documents$\%username%\Desktop than it fails with this message. I personally think because the C:\Windows\CSC database is locked by the previous user who has been logged on this system.

An example of the event generated in the Applications Event viewer part (I removed some username and server path):

Log Name:      Application
Source:        Microsoft-Windows-Folder Redirection
Date:          1-2-2011 17:40:11
Event ID:      502
Task Category: None
Level:         Error
Keywords:     
User:          domain\ivan
Computer:      computer.domain.name
Description:
Failed to apply policy and redirect folder "Videos" to "\\servername.domain.name\documents$\ivan\Documents\My Videos".
 Redirection options=0x1001.
 The following error occurred: "Can not create folder "\\\servername.domain.name\documents$\ivan\Documents\My Videos"".
 Error details: "Access is denied.
".
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Folder Redirection" Guid="{7D7B0C39-93F6-4100-BD96-4DDA859652C5}" />
    <EventID>502</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2011-02-01T16:40:11.486983400Z" />
    <EventRecordID>2754</EventRecordID>
    <Correlation ActivityID="{3211E6FB-2801-456D-BE6E-66AAE150A4DC}" />
    <Execution ProcessID="968" ThreadID="5856" />
    <Channel>Application</Channel>
    <Computer>computer.domain.name</Computer>
    <Security UserID="S-1-5-21-3705223304-2632712944-1292073641-26755" />
  </System>
  <EventData Name="EVENT_FDEPLOY_FailedToApplyPolicy">
    <Data Name="FromFolder">Videos</Data>
    <Data Name="ToFolder">\\servername.domain.name\documents$\ivan\Documents\My Videos</Data>
    <Data Name="Options">0x1001</Data>
    <Data Name="Error">Can not create folder "\\servername.domain.name\documents$\ivan\Documents\My Videos"</Data>
    <Data Name="ErrorDetails">Access is denied.
</Data>
  </EventData>
</Event> 

Something like this I see in the Application Eventviewer:

 

Environment:
Windows 7 Enterprise client with patches until 1-Nov-2010
Windows Server 2008 R2 for the Documents$ share
Windows Server 2003 R2 as the domain controller

I have tried all different option even to rebuild the CSC database but this also was not helping. I hope we are not dealing with a bug.

Any help is much appreciated.

 


Best regards, Ivan Versluis http://www.networknet.nl

Viewing all articles
Browse latest Browse all 19997

Trending Articles