LordJuanlo
09-22-09, 06:28 AM
I'm getting new hard drives for my incoming Windows 7 installation, and I would like to use a separate drive for profiles and program data. By default, profiles are stored in C:\Users folder and program data in C:\Program Data. After a bit of googling on how to change it during Windows install, I have found that you can create an unattend.xml file to change this behaviour. You just insert your Windows 7 DVD in the drive, and put this xml file in a USB drive, so Windows setup will look for it and use it during installation.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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:\Profiles</ProfilesDirectory>
<ProgramData>D:\Data</ProgramData>
</FolderLocations>
</component>
</settings>
</unattend>
However I have found out this (http://technet.microsoft.com/en-us/library/cc722177(WS.10).aspx) warning on technet:
This setting should be used only in a test environment. By changing the default location of the user profile directories or program data folders to a volume other than the System volume, you will not be able to service your Windows installation. Any updates, fixes, or service packs will fail to be applied to the installation. Microsoft does not recommend that you change the location of the user profile directories or program data folders.
This applies to Windows Vista, I haven't found anything saying Windows 7 has the same problem. If this happens in 7, I won't be able to install any Service Packs or fixes from Windows Update.
Has anyone tried it previously, in 7 or Vista?. Found any problems?
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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:\Profiles</ProfilesDirectory>
<ProgramData>D:\Data</ProgramData>
</FolderLocations>
</component>
</settings>
</unattend>
However I have found out this (http://technet.microsoft.com/en-us/library/cc722177(WS.10).aspx) warning on technet:
This setting should be used only in a test environment. By changing the default location of the user profile directories or program data folders to a volume other than the System volume, you will not be able to service your Windows installation. Any updates, fixes, or service packs will fail to be applied to the installation. Microsoft does not recommend that you change the location of the user profile directories or program data folders.
This applies to Windows Vista, I haven't found anything saying Windows 7 has the same problem. If this happens in 7, I won't be able to install any Service Packs or fixes from Windows Update.
Has anyone tried it previously, in 7 or Vista?. Found any problems?