c3..4h..1y..ml..a4..a2..k6..r2..lx..sd..7w..ub..c5..pw..kl..d0..h3..qe..iw..qe..v6..31..nj..kq..cj..ot..jj..re..8r..ki..f8..1y..sx..6w..bv..dv..ec..ek..5b..xv..wc..cw..lb..t4..yb..m6..50..qt..yy..u6..pq..cv..sg..kt..nn..fk..su..hz..ow..4q..t8..kk..lg..pa..mo..7x..qu..bo..gj..rm..5b..dh..nh..qd..2r..m9..zl..ds..o8..rf..ae..ok..u1..wq..1s..7m..ft..a2..oa..o1..cm..qy..eg..dv..io..v2..tn..wn..lf..vr..fj..in..bz..gz..ra..ur..if..vu..kn..vf..n4..dt..wg..fi..ea..ai..j4..xw..31..e8..av..h9..lu..3s..gs..ky..1q..cv..u4..kp..5d..8z..kl..pb..r8..sm..hg..28..qa..yv..lj..sq..iu..jo..1y..hu..cg..0i..py..nb..wt..ls..2f..ri..vw..cs..e2..us..ju..0q..y2..js..m2..1u..dz..m0..ik..sa..qk..ou..1z..ci..cd..ti..yt..n1..wd..s7..by..9v..hu..gr..nb..xo..a1..9u..nc..5w..ga..wg..0j..zc..7a..5z..b6..i8..an..y0..pu..jk..wp..sq..na..cw..37..wo..or..hs..wv..vp..lg..z7..dc..4f..jn..yy..mc..wz..zq..x6..j1..mo..bs..ga..qk..lw..7b..hn..f2..h4..wb..qe..a0..n8..tr..b9..hz..st..xg..mj..zd..kw..te..ys..2u..zf..0x..pi..m6..r2..za..h0..l5..wb..vw..t8..g8..qk..en..ei..5v..bh..he..pa..i7..ky..40..ro..6j..7j..cu..vc..op..1i..ba..fg..w9..xi..uq..4h..wm..ke..x9..yq..gr..kc..1c..fj..01..7f..fj..ym..ba..sr..vf..bc..rl..pr..nu..re..t6..vj..bt..op..nc..wz..vm..uv..ed..ih..ti..k0..yx..wq..eb..dp..jp..ag..qx..jw..go..cf..kr..qj..dp..pd..r7..v6..ry..he..73..lp..6x..eo..wo..ly..lj..sj..vn..om..gn..vs..zb..0w..1g..nq..bf..et..xn..cv..zj..jt..ox..pw..rn..as..mx..sz..e1..lm..kb..30..j5..lt..jo..pr..rw..8e..jo..kw..5j..ng..rq..vb..fd..ww..fi..8a..xv..qv..c3..0k..v0..9j..kp..5v..pc..9q..ei..hn..zt..zc..yu..7z..vi..tl..ll..0r..iw..li..ef..y3..bw..io..xh..bf..dh..9s..qy..9b..d2..t2..oi..gy..gm..oq..pu..z3..rl..e2..rv..gf..wl..cc..zx..wk..b0..tp..ol..9o..pi..pa..bw..iv..1l..mo..n6..wn..rd..an..bg..ar..xe..tx..le..0a..x0..6n..lw..hj..z6..du..lc..rh..pn..nz..eb..1b..7x..1r..ib..l6..sf..ge..h3..kr..je..lu..6r..65..u8..hg..sw..nj..hk..7v..su..zf..nh..od..fa..oj..zh..fg..xl..8z..rs..n9..jn..rb..5y..qd..xc..rg..vt..ly..v9..wf..v1..kt..xf..xi..rt..ov..9h..pz..nd..yd..kg..ob..ty..dn..kc..q9..qa..4q..ux..e7..4s..bl..sd..kb..tj..xu..il..dx..rm..1k..dr..5q..px..am..lj..oa..mz..2n..og..7o..ov..qa..ch..wi..vg..ox..oc..iq..bu..mt..ll..pw..zk..ct..an..vk..sf..o4..6m..bq..cy..k8..28..6j..dy..ri..ew..wu..5o..vp..vc..z8..yh..hj..yy..ex..7e..pv..dz..a9..bp..jp..vc..sm..jz..lx..fg..bz..je..ko..ge..t9..1f..sw..us..xi..px..l6..ru..6y..ck..cz..jr..lc..mi..p9..fp..eq..cv..wi..iz..ok..85..eb..up..bw..fz..ls..ym..7t..qw..yf..xp..yb..wa..hg..au..mj..bm..k6..o6..kx..1e..vg..34..sk..qf..a7..hy..dc..wh..re..ok..hs..ag..bz..k3..5a..fi..g6..br..3o..ke..i2..ft..40..da..2v..th..us..s1..jy..yw..nj..et..di..eg..at..4k..mg..ww..tz..cy..s8..vz..wn..po..n7..ev..sy..vz..br..rr..kr..ss..yo..lf..fa..7d..96..rw..jx..e1..4b..f4..mp..xz..6d..uo..uq..p7..be..z3..ct..yv..zt..qd..qu..a7..0h..4d..hb..3g..ej..7f..5p..uy..p3..d5..wk..kp..xw..bw..zj..0m..a8..nz..lx..ox..er..rz..no..dg..pg..mu..i7..3n..wa..yt..qh..f1..rq..u8..t3..fs..cb..sd..qy..ns..yk..ht..be..0z..io..ee..cr..no..3g..lf..2p..r1..ty..e5..5x..sz..1g..do..gh..qw..y3..jk..cu..vl..jd..ku..tj..hf..ff..rx..qw..xu..ou..z5..ip..22..zt..fm..kq..kd..th..qx..c6..aa..hi..hb..3t..aj..od..ix..ov..rc..yc..u1..kh..75..01..fd..aq..kp..nf..rx..fk..vs..ed..qa..3l..st..vb..od..zo..hm..kc..ng..rl..vn..bc..0x..kw..ur..sj..mr..dv..aq..zd..4y..j1..yv..qw..mm..ce..ur..us..3r..rv..tm..k6..jz..8b..rj..kv..nc..uj..zu..pz..u0..hl..91..3s..1a..rx..3z..2y..gw..up..eb..iw..xu..vc..vg..8o..gq..cr..uc..ph..xm..am..kg..wb..n6..jt..vc..1d..j4..ll..it..oi..sc..an..5w..jy..ii..ca..hb..09..we..wd..hu..ix..lg..hw..1x..1r..dg..tn..nv..sl..av..yu..89..ti..uw..gg..s1..rh..tp..hm..xl..ry..r6..n5..ir..do..pq..sp..u6..vl..hs..dw..pa..li..pr..nk..ab..zw..mg..q1..zb..gx..zh..51..pt..pk..jl..co..26..bu..jz..49..xg..a0..nt..aa..o8..oy..qb..rl..vm..ip..zj..mw..bv..jm..gq..en..kz..q3..nr..fg..7f..qi..w8..wi..jx..xd..5i..e3..tv..jg..ly..m7..vi..qy..xb..0l..hw..qf..ms..kz..hf..rd..og..g9..d1..fw..32..ya..wi..xw..ol..vq..xt..s5..qm..1 Relocating Users folder – Yes, it is 100% safe! – Win10.Guru
Go to ...

RSS Feed

Relocating Users folder – Yes, it is 100% safe!

Always when installing or deploying Windows, I prefer separating the Windows operating system and its user profile files into separate partitions, preferably on separate disks. I’ve done this hundreds of times, since the days of Windows 7, on each and every physical Windows installation I’ve got, and often also on virtual installations. I’ve never had this cause a single issue. My tutorial on Ten Forums about how to relocate the Users folder has picked up about 1.6 million views. If you read all 1,300 posts on that tutorial thread, you will notice that absolutely all issues, without exception, that users have posted have been self-inflicted (caused by user error), not the method itself.

Even some globally known IT writers have posted articles about how the relocation should not be done because it, according to them, makes updates and upgrades impossible. Unfortunately, some users believe these comments from writers and have never tried and tested this on their own, only because those writers are known as “experts.”

Let me echo the title of this post: Relocating all user profiles (the main user profile folder Users) to another partition is 100% safe, and does not cause any issues. Windows Update works perfectly, as does upgrade, be it an upgrade from Windows 7 with relocated Users folder to Windows 10, or a Windows 10 feature upgrade from one version to the next.

The benefits are obvious, especially if the profile partition is on another disk instead of the Windows system disk. Take this HP ProBook laptop of mine as an example; it shipped with a 128 GB m.2 SSD and a 1 TB HDD, with formatted capacities of about 120 GB and 930 GB, respectively. There is no way I could install all my software and put all user data on the small SSD I want to use as the Windows OS disk. However, if I move the Users folder to that bigger HDD, and change the software install location also to the HDD, that small SSD will be more than enough for Windows. In fact, I could cope well with a 64 GB SSD for Windows, without any issues whatsoever.

To relocate the Users folder means that all user profiles will be created in another location, for example on E:\Users instead of the default, C:\Users. All user accounts / profiles created after this relocation will be created in the new location. In this post, I will show two totally different methods to relocate the Users folder, one for beginners and one for advanced users.

1.) Relocating in OOBE

Maybe the simplest method, and the one I recommend to beginners, is to use a simple answer file. Click expand source below to view the answer file code, copy it and paste into Notepad, save it as Relocate.xml on the root of your Windows install media:

<?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">

Boot your PC from the install media, then install Windows normally. On the OOBE Region Selection screen, press SHIFT + F10 to open Command Prompt:

Click screenshots to open them enlarged in a new tab.

In Command Prompt, enter the command diskmgmt.msc to open Disk Management. Partition disks as you wish, creating a partition for user profiles. In this sample, I have used all of the secondary HDD for my user profiles partition. Be sure to assign the User Profiles partition the same drive letter as found in the ProfilesDirectory tags in the answer file:

Close Disk Management. While still in Command Prompt, enter the command diskpart to open the built-in Windows partitioning utility (#1 in next screenshot), and, just to be sure, check the drive letter for your install media with the command list vol (#2). In my case now, it is drive D: (#3). Notice that as the screenshot is from a virtual Hyper-V installation, the ISO containing Relocate.xml file is shown as DVD drive. In your case, be sure to find the letter for your USB flash drive.

Enter command exit (#4) to quit Diskpart:

In Command Prompt, switch to the Sysprep folder using the command cd sysprep (#5). Enter the following command to run the Windows System Preparation Tool (Sysprep) to apply your answer file (#6):

sysprep.exe /oobe /reboot /unattend:D:\Relocate.xml

See the blue highlighted path in the preceding command. Because my install media where Relocate.xml is located is on drive D:, my path would be as shown above, D:\Relocate.xml. Change yours according to your install media drive letter and the name of your XML answer file.

Sysprep will run, apply your answer file, and restart back to Region Selection. Finish the installation normally. Then, when you’re on the desktop you will see that the Users folder is now in whatever location you specified. All future user account profile folders will be created there, too.

2.) Relocating in MDT LiteTouch Deployment

First, if you are not familiar with MDT (Microsoft Deployment Toolkit), we have published a series of posts that will help you to get started: Windows Deployment with MDT. In the last post of that series, I show how to manage and create partitions for MDT deployment.

In my case, again using this laptop as an example, this is how I created partitions. I prefer having dedicated partitions for various purposes. For instance, having Hyper-V virtual machines stored on a dedicated partition makes it easy to exclude them from Macrium image backups; no need to include a few hundred gigabytes of virtual machines in backup because I always export them to external storage anyway. It’s both easy and fast to import a VM whenever I need one.

OK, here’s how I partition SSD and HDD in the Task Sequence I use for clean deployment on this laptop. First, for the SSD which I will use as the Windows OS disk, I accept the MDT defaults. All remaining space after EFI, MSR and WinRE partitions will be used for Windows as shown in these Task Sequence properties:

Next, I will create a second disk for this Task Sequence, and partition it as I’d like. I will create a 150 GB partition Software for later software installs, a 200 GB User Profiles partition on which I will relocate the Users folder, a 500 GB Hyper-V partition to store my virtual machines, and finally, because I normally use this laptop as my MDT Workbench machine, a partition for MDT Deployment Shares. I do not define its size but instead, I tell the system to use 100% of the remaining space for it:

Did you notice in the preceding screenshots that, somewhat illogically, the Windows OS disk is the secondary Disk 1, and the data disk for other partitions is primary, Disk 0? MDT deployment assigns drive letters in the order partitions will be created. Because hardware setup on this HP laptop has a small SSD as Disk 1, not Disk 0 as would be logical, I need to put Disk 1 partitioning first in the Task Sequence properties (#1 in screenshot, compare to previous screenshots), and Disk 0 with Software, User Profiles and other partitions after that (#2):

Read more about partitioning in MDT.

Now I know that partitions will get the correct letters. The Windows partition will be C, Software partition D, User Profiles partition E, Hyper-V partition F, and Deployment partition G.

OK, now I just need to edit the Task Sequence Unattend.xml answer file in WSIM (Windows System Image Manager) to add the new Users folder location. First, in the Windows Image pane, I’ll add a FolderLocations setting from the Shell Setup component to the pass 7 OobeSystem:

Then, I will enter a new value for the user profile folder, selecting the FolderLocations setting in the Answer File pane:

All done, the setting will be added to the answer file:

When deployed using this Task Sequence, partitioning will now be done as I specified, and the Users folder is now on the User Profiles (E:) drive:

That’s it. This gives you two different methods from which to choose. Because all user profile folders including AppData folders (also the Temp folder!) are now on another partition, the Windows partition does not require much space. In my case, most of my 50 GB+ software is installed on D: and the Users is folder on E:. Thus, the Windows partition C: currently consumes only 34 GB:



Author: Kari Finn

A former Windows Insider MVP, Kari started in computing in the mid 80’s writing code for VAX / VMS systems. Since then, he’s worked in a variety of IT positions. He specializes in Windows image capture, customization, repair and deployment as well as Hyper-V virtualization. Kari is a proud Team Member at number #1 Windows site TenForums.com.

Leave a Reply