Where Customization Begins 

  • Move user folder to a different HD using the answer file

  • Windows® Automated Installation Kit (WAIK), Windows System Image Manager (WSIM), Win PE and Windows Assessment and Deployment Kit (ADK) Tutorials are right here.
Windows® Automated Installation Kit (WAIK), Windows System Image Manager (WSIM), Win PE and Windows Assessment and Deployment Kit (ADK) Tutorials are right here.
 #25624  by Neuropass
 10 Feb 2013, 16:41
When creating a clean install, using the combination of an SSD system drive and a conventional disk drive, as a data drive, there is a way to "move" the Users folder (normally, C:\Users) and the hidden ProgramData folder (normally C:\ProgramData) to the conventional disk, or data drive, using an answer file, or unattend.xml, for an unattended installation.

his is an xml file (a text file), created in the Windows System Image Manager application. You can call it whatever you like. I'd suggest: folders.xml.

Here's the content of a folders.xml file, which will re-locate Users and ProgramData to D:\

Code: Select all<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <FolderLocations>
                <ProfilesDirectory>d:\Users</ProfilesDirectory>
                <ProgramData>d:\ProgramData</ProgramData>
            </FolderLocations>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:h:/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Source: M$ Community