Microsoft KB Archive/816841

= You cannot restore encrypted files to a remote computer in Windows 2000 =

Article ID: 816841

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-





SYMPTOMS
On a computer that is running Microsoft Windows 2000, you successfully back up encrypted files from a remote computer. When you try to restore the files to the remote computer, the restore operation cannot restore some of the files. You may receive an error message that is similar to the following:

The system cannot find the path specified.



CAUSE
This problem occurs when all the following conditions are true:
 * You try to restore the encrypted files to a remote computer.
 * The file path of an encrypted file is longer than 260 characters.
 * The Encrypting File System (EFS) backup API uses the OpenEncryptedFileRawW function to open a file that has the &quot;\\?\&quot; prefix. For example, the OpenEncryptedFileRawW function makes a call to open the file \\?\ :\ \ or the file \\?\UNC\ \ \ \.

The &quot;\\?\&quot; prefix permits file paths that are longer than the 260 character limit that is set by the MAX_PATH variable. When you back up an encrypted file that has a path that is longer than 260 characters, the &quot;\\?\&quot; encoding works successfully. However, when the EFS backup API tries to open the same file for a restore operation, the API returns the ERROR_PATH_NOT_FOUND error status. This problem occurs because the &quot;\\?\&quot; or the &quot;\\?\UNC&quot; encoding is prematurely removed, and the computer receives the long file path without the &quot;\\?\&quot; or the &quot;\\?\UNC&quot; prefix.



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack



WORKAROUND
To work around this problem, make sure that the lengths of the file path names are not greater than the limit that is set by the MAX_PATH variable.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section of this article. This problem was first corrected in Windows 2000 Service Pack 4.

Keywords: kbhotfixserver kbqfe kbwin2ksp4fix kbprb kbfix kbbug KB816841

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.