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 ID: 968178 – Last Review: February 20, 2009 – Revision: 1.0

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

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 (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 /Feedback.aspx?kbNumber=929831 (/Feedback.aspx?kbNumber=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.


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

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image