Move Users Folder Location in Windows 10  


  1. Posts : 7
    Windows 10 pro x64
       #660

    Hello...new to the forum...thanks for all the helpful information! I have read through this complete thread and watched the videos, through the W10 clean install thread and videos and acquainted myself with the new (to me) UEFI bios. I've used XP for as long as it would allow but am now forced to upgrade both the machine and the os, so am having to deal with quite a lot of "new stuff" so bear with me please.
    The new (used) PC came with W7pro64 COA, so I obtained the correct Dell os install disk, got it loaded and then upgraded to W10pro64 with no issues. Alas, at this point I found Ten Forums and this tutorial, realized what UEFI was and that I should use it and just what I had with the "new" SSD drive and how I should actually configure the system. I chose to post here since relocating all the USER files and folders is the primary goal. I have put together an instruction sheet for myself to follow based on the multiple tutorials and videos I've gone through here and would appreciate a review and pertinent comments on it if you would be so kind? Thanks in advance for any response and keep up the great, informative work!

    MOVE USERS FOLDERS AT A CLEAN (RE) INSTALL OF WINDOWS 10 Pro x64 IN UEFI MODE

    Create a boot disk from MACRIUM FREE for imaging the newly created os image.
    Download a Windows 10 ISO image with the install.wim file from the Windows Tech Bench site.
    Create a bootable DVD with this ISO image for use with the clean install procedure.
    Do a Secure erase on the SSD using bootable Parted Magic utilities – to allow it to fully be returned to a fresh out of the box state - prior to beginning the clean install.
    Enter BIOS and set to full UEFI parameters, then verify/set DVD as boot option in UEFI mode – disable Secure Boot feature, for the time being at least.
    Boot from the DVD drive using the W10 install media to begin the clean (re) install.
    When the installation has done the last reboot and brings you to the Get going fast or Settings dialog screen, insert the imaging boot disk and then Turn Off the PC…
    Re-attach the SATA cable from the existing secondary 2TB HDD already containing GPT partitions E:\ F:\ and G:\.
    At this point, reboot to the imaging DVD and create a system image. When created, remove the imaging boot disk, insert the Win 10 install media disk and reboot normally, NOT to the DVD.
    Setup should resume from the Get going fast/Settings screen.
    Access the internet using Win+R keys and typing iexplore.exe ENTER. Go to the TenForums tutorial and copy the necessary code for the .xml answer file. Exit the browser and again, using the Win+R keys to access Notepad, create an unattended Answer File by pasting in the code given in the tutorial.
    Alter the line:
    <ProfilesDirectory>X:\Users</ProfilesDirectory>
    to reflect the chosen drive. Save the file, naming it relocate.xml and as type “All” to (the location being used in the Answer File line previous) typically the root of any drive except C:\, which in this case will be F:\.
    And the line:
    <cpi: offlineImage cpi: source=”wim: X:\sources\install.wim#Windows 10 Pro” xmlns:cpi=urn:schemas-microsoft-com:cpi” />
    to reflect the letter of the drive containing the bootable DVD with the Windows 10 install media.
    [Alternatively, create this file ahead of time and save it to the root of what will become the new User Profiles drive on the secondary HDD…before beginning the clean (re) install, thereby simplifying the process?]

    Access a Command Prompt (Admin) with Win+X keys and disable network connections temporarily with the command: net stop wmpnetworksvc so that Sysprep will not fail. Exit the prompt and boot to Audit Mode using the CTRL + SHIFT + F3 key sequence.
    Windows boots to Audit Mode using the built-in admin account. At the Desktop, the System Preparation Tool dialog box will appear. Close it by pressing the Cancel button. Run Sysprep with the command:
    %\windir%\system32\sysprep\sysprep.exe /oobe /reboot /unattended:X:\relocate.xml substituting the actual location (F:\ in this case) of the Answer File for X and hit ENTER to be presented with the Sysprep is working box.
    When complete, Windows runs the First Run OOBE boot from where the installation can be completed with the USERs folders now permanently moved to the new location.
    At this point, if desired, re-insert the imaging boot disk, reboot to the imaging DVD and create another, final, system image. When created, remove the imaging boot disk and boot to a clean, correctly configured, install of Windows 10.
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #661

    Hi GeeZRX, welcome to Ten Forums.

    There's something wrong in your planned course of action, the workflow is not correct. It starts to go wrong after you have created the initial system image before booting to Audit Mode.

    Using your selected tasks and your goal, here's the correct workflow in your case modified to your needs:

    1.) Boot from W10 install media

    2.) When installation is done and you will be shown the Settings dialog (Custom vs. Express), turn PC off, connect the secondary HDD and create an image booting with Macrium rescue media (this step is a wise move which I admit I bypass; it allows you to restore W10 to pristine Out-of-the Box state if any unforeseen things happen later on)

    3.) When image is done, turn PC off again, insert W10 install media but boot from primary SSD / HDD, not from W10 install media (Windows is already installed)

    4.) You will be shown the Settings dialog again. Press CTRL + SHIFT + F3 to restart in Audit Mode

    5.) Get the Answer File from this tut using IE as Edge does not work in Audit Mode

    6.) Edit the answer file as needed replacing drive ID letters to your actual ones

    7.) Save the Answer File

    8.) Sysprep using /shutdown switch instead of /reboot switch using this command line:
    Code:
    %\windir%\system32\sysprep\sysprep.exe /oobe /shutdown /unattended:X:\relocate.xml
    (Change compared to how the command is told in tut in red.)

    9.) Windows syspreps and shuts down.

    10.) Now for extra safety and convenience, create an additional system image with Macrium

    11.) When additional system image has been created you are ready. Boot Windows normally, go through the final setup phase creating a user.

    That's it. The additional system image in step 8 above is optional; if you don't want to / need to make it, use the /reboot switch as told in tutorial instead of /shutdown switch restarting directly to OOBE setup.

    Kari
      My Computer


  3. Posts : 6
    Windows 10 Home
       #662

    Problems with the unattend.xml - file


    Hi Kari
    I'm new to this forum and joined, because I couldn't find an answer to my problem using this tutorial:
    • First I tried to do it exactly as explained (method two). I got an error message claiming that the answer file could'e be processed because it contained at least on element already processed (translated from german).
    • Then I tried to reduce the file relocate.xms to the min (leaving just the FolderLocation-element and its containing elements of course). Same thing
    • I even tried to copy those three lines into \Panther\unattend\unattend.xml and giving this file as answer-file.
      The result was that sysprep started, did a reboot and crashed telling me again that certain elements were contradicting already processed ones - and I had to use my image file to restore my system.

    Can you give me a hint about this strange behaviour of sysprep?
    Greetings, Eppi
      My Computer


  4. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #663

    Eppi said:
    Can you give me a hint about this strange behaviour of sysprep?
    Greetings, Eppi
    Hi Eppi, welcome to the Ten Forums.

    I need to see the answer file you used, and the log file setupact.log from folder C.\Windows\System32\Sysprep\Panther. Please zip these two files and attach to a post.
      My Computer


  5. Posts : 6
    Windows 10 Home
       #664

    Kari said:
    Hi Eppi, welcome to the Ten Forums.

    I need to see the answer file you used, and the log file setupact.log from folder C.\Windows\System32\Sysprep\Panther. Please zip these two files and attach to a post.
    Well, Kari, you shure are quick to answer :)
    This setupact.log was created using the attaced relocate.xml. I can't give you one of the crashes because I hadn't access to them after the crashes.

    move-user-folder.zip
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #665

    OK, your log tells Sysprep has issues with your given answer file path. the backslash (\) in path is really important, remember to use path d:\relocate.xml instead of d:relocate.xml.

    Second, read the warning about drive letters and especially about drive letter D: in tutorial carefully through:

    warning   Warning
    If you intend to use drive D: as the location for the relocated Users folder, please read this before proceeding!

    Windows "likes" to set the the drive ID letters like this:
    • Drive C: > The system drive where Windows will be installed
    • Drive D: > First optical drive (CD / DVD drive)
    • Drive E: > Second partition on the same disk where the C: is located, or in case that disk only has one partition, the first partition on the secondary disk

    Now when you sysprep telling it to move the Users to D: drive, after the reboot Windows might find that the D: is an optical drive and your intended drive D: is now E:, sysprep fails and you have to reinstall.

    To be sure you are able to use drive D: for the relocated Users folder you need to set the drive letters manually before the sysprep is run. In Audit Mode you can do this for instance with Disk Management by manually changing the drive letters:
    • Change the optical drive letter to something at the end of the alphabet, I use X:
    • Change the drive letter of the partition or disk you intend to use for the Users folder to D:
    • If the partition or disk you want to use already has a letter D:, change it to something else, close the Disk Management, open it again and change the letter back to D:

    See the tutorial at our sister site the Seven Forums: Drive Letter - Add, Change, or Remove in Windows - Windows 7 Help Forums

    I recommend to always set drive letters manually to override the defaults but this is especially important for those wanting to use drive D: for relocated Users folder.


    Kari
      My Computer


  7. Posts : 6
    Windows 10 Home
       #666

    Kari said:
    OK, your log tells Sysprep has issues with your given answer file path. the backslash (\) in path is really important, remember to use path d:\relocate.xml instead of d:relocate.xml.

    Second, read the warning about drive letters and especially about drive letter D: in tutorial carefully through:

    Kari
    Thank you for your answer.
    Unfortunately it didn't work. The critical part of setupact.log looks still the same, even if I used the backslash:

    2016-07-17 19:55:37, Info [sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [d:\relocate.xml]...
    2016-07-17 19:55:37, Error [sysprep.exe] UnattendFindAnswerFile: Unattend file [d:\relocate.xml] has already been processed.
    2016-07-17 19:55:37, Warning SYSPRP SysprepSearchForUnattend: Found invalid unattend file while searching; hr = 0x1
    2016-07-17 19:55:37, Warning SYSPRP WinMain:Encountered invalid unattend file during search; hrResult = 0x80300019
    2016-07-17 19:55:37, Info IBS UnattendErrorFromResults: Hit an unattend error; dumping any info we have about the failure...
    2016-07-17 19:55:37, Info IBS UnattendDumpSetting: ------Unattend setting error / warning------
    2016-07-17 19:55:37, Info IBS UnattendDumpSetting: Error code = 0x80300019
    2016-07-17 19:55:37, Info IBS UnattendDumpSetting: File path = [d:\relocate.xml]
    2016-07-17 19:55:37, Info IBS UnattendDumpSetting: --------------------------------------------
    2016-07-17 19:55:37, Info IBS UnattendErrorFromResults: Error text = Die Antwortdatei f�r die unbeaufsichtigte Installation [d:\relocate.xml] konnte nicht analysiert oder verarbeitet werden. Die Antwortdatei enth�lt mindestens ein bereits verarbeitetes Einstellungselement.

    I really don't understand the red line. Why should it be already processed?

    I had considered your warning about D: and set all the Drives manually.

    Greetings, Eppi
      My Computer


  8. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #667

    You are doing this on an already installed Windows, as told in Method Two? If so, are you running sysprep command from an elevated Command Prompt?
      My Computer


  9. Posts : 6
    Windows 10 Home
       #668

    Kari said:
    You are doing this on an already installed Windows, as told in Method Two? If so, are you running sysprep command from an elevated Command Prompt?
    yes, I'm doing it using the inbuilt administrator and the admin prompt on an installed Windows.
      My Computer


  10. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #669

    I read your posts again, trying to think about what the error could be, coming up with nothing. Method Two is trickier, that we know.

    Try running sysprep without any answer file, just this command:

    Code:
    sysprep.exe /oobe /reboot

    Report back how it went.
      My Computer


 

Tutorial Categories

Move Users Folder Location in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:56.
Find Us




Windows 10 Forums