When you use the System Preparation Tool (Sysprep) or Windows Vista Setup to apply the FolderLocations unattend settings, some system directory junctions do not point to the new target location

Article translations Article translations
Close Close
Article ID: 968178 - View products that this article applies to.
Support for Windows Vista Service Pack 1 (SP1) ends on July 12, 2011. To continue receiving security updates for Windows, make sure you're running Windows Vista with Service Pack 2 (SP2). For more information, refer to this Microsoft web page: Support is ending for some versions of Windows.
Expand all | Collapse all
Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Symptom



When you use the System Preparation Tool (Sysprep) to apply the FolderLocations unattend settings, some system directory junctions do not point to the new target location. The following system directory junctions continue to point to the old locations:

  • C:\Documents and Settings continues to point to C:\Users.

  • C:\ProgramData\Desktop continues to point to C:\Users\Public\Desktop.

  • C:\ProgramData\Documents continues to point to C:\Users\Public\Documents.

  • C:\ProgramData\Favorites continues to point to C:\Users\Public\Favorites.


If you use the Windows Vista Setup program to apply the FolderLocations unattend settings, the system directory junctions do not point to the new target location. The following system directory junctions continue to point to the old locations:

  • C:\Documents and Settings continues to point to C:\Users.

  • C:\Users\Default User continues to point to C:\Users\Default.

  • C:\Users\All Users continues to point to C:\ProgramData.

Cause

The junction points point to incorrect targets.

Resolution



To recreate the junction points so that they point to the correct target, follow these steps:

1.       Install the User Profile directory on another volume, and then delete the incorrect junction point(s).

2.       Use MKLink to recreate the junction points using the following command line:

MKLink /J <link name> <target path>

For example, to recreate the junction point Documents and Settings in a new target volume where the Users directory is F, the command line would then be:

MKLink /J <drive letter>:\documents and settings f:\users

So the following could be used:

  • mklink /j "c:\Documents and Settings" D:\Users

  • mklink /j %ProgramData%\Desktop d:\Users\Public\Desktop

  • mklink /j %ProgramData%\Documents d:\Users\Public\Documents

  •  mklink /j %ProgramData%\Favorites d:\Users\Public\Favorites


3.       Recreate the permissions for the new junction point.

a.       For the junction points Desktop, Default User, Documents and Settings, Favorites, and Documents, use the ICACLS tool. For more information about the ICACLS tool, see http://technet.microsoft.com/en-us/library/cc753525.aspx .

Note      The following commands must be done in the order shown as it affects the resulting permissions on the junction point.

  • icacls "c:\Documents and Settings" /grant:r System:(F) /inheritance:r

  • icacls "c:\Documents and Settings" /grant *S-1-5-32-544:(F)

  • icacls "c:\Documents and Settings" /grant *S-1-1-0:(RX)

  • icacls "c:\Documents and Settings" /deny *S-1-1-0:(S,RD)


 

  • icacls "%ProgramData%\Desktop" /grant:r System:(F) /inheritance:r

  • icacls "%ProgramData%\Desktop" /grant *S-1-5-32-544:(F)

  • icacls "%ProgramData%\Desktop" /grant *S-1-1-0:(RX)

  • icacls "%ProgramData%\Desktop" /deny *S-1-1-0:(S,RD)


 

  • icacls "%ProgramData%\Documents" /grant:r System:(F) /inheritance:r

  • icacls "%ProgramData%\Documents" /grant *S-1-5-32-544:(F)

  • icacls "%ProgramData%\Documents" /grant *S-1-1-0:(RX)

  • icacls "%ProgramData%\Documents" /deny *S-1-1-0:(S,RD)


 

  • icacls "%ProgramData%\Favorites" /grant:r System:(F) /inheritance:r

  • icacls "%ProgramData%\Favorites" /grant *S-1-5-32-544:(F)

  • icacls "%ProgramData%\Favorites" /grant *S-1-1-0:(RX)

  • icacls "%ProgramData%\Favorites" /deny *S-1-1-0:(S,RD)


b.      For the junction point All Users, use ICACLS with the following command lines.

Note      The following commands must be done in the order shown as it affects the resulting permissions on the junction point.

  • icacls "<drive letter>:\users\all users" /grant:r System:(CI)(OI)(F) /inheritance:r

  • icacls "<drive letter>:\users\all users" /grant Administrators:(OI)(CI)(F)

  • icacls "<drive letter>:\users\all users" /grant "Creator owner":(OI)(CI)(IO)(GA)

  • icacls "<drive letter>:\users\all users" /grant Users:(OI)(CI)(RX)

  • icacls "<drive letter>:\users\all users" /grant Users:(CI)(WD,AD,WEA,WA)

More Information



This article presents means to resolve junction issues described in "A description of known issues with the FolderLocation settings in the Windows Vista Unattend.xml file." See http://support.microsoft.com/kb/929831

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 968178 - Last Review: June 10, 2011 - Revision: 1.1
APPLIES TO
  • Windows Vista Enterprise 64-bit Edition
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Ultimate 64-bit Edition
  • Windows Vista Business
  • Windows Vista Business 64-bit Edition
  • Windows Vista Business N 64-bit Edition
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Service Pack 1
  • Windows Vista Service Pack 2
  • Windows Vista Ultimate
Keywords: 
kbnomt kbrapidpub KB968178

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com