Fully relocating Users tree in Windows 11


The worst thing that could happen is Windows booting into a black desktop, creating a temporary account.
It can happen randomly. Usually a restart solves it, if not restoring a system backup should help, so backup!
It only happened to me when it couldn't find the D: drive and it doesn't find the user profile (like forgot to reconnect the D: drive)
After drive re connection an a little change on the register and it work as before.
 

My Computers

System One System Two

  • OS
    Windows 7 HP 64 - Windows 11 Pro - Lubuntu
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom build
    CPU
    i5 6600K - 800MHz to 4400MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Win 11
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    (4) -1 BX500 SSD - 128G for Windows 7 and Lubuntu
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
  • Operating System
    Windows 7 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus Q550LF
    CPU
    i7-4500U 800- 3000MHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs
    & 1T HDD for data
    Internet Speed
    350 Mb/s
    Browser
    Firefox 64
Sorry, but no.
To go find thee user profile folder the system looks for %userprofile% .
Put %userprofile% on explorer and it will take you to C:\Users\"Name"
In my case it takes me to D:\Users\Luiz

Not sure what this ("Sorry, but no.") is referring to. Can you clarify? My comment was with regard to a game creating a new Documents folder in the C: user folder after already relocating (via the normal method of moving individual folders) it to another drive. It created a new Documents folder back on C: and then out files there. That's irritating, as you can imagine, since there was a reason I had moved it. My expectation for moving the entire Users tree via Kari's methods is in part to prevent that sort of thing.

I do understand what you're saying about how the user folder via %userprofile% should be correctly reflected with Kari's method.
 

My Computer

System One

  • OS
    Windows 11 Education version 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Alienware m18 R2
    CPU
    i9-14900HX
    Memory
    64GB DDR5
    Graphics Card(s)
    RTX 4090
    Screen Resolution
    2560x1600
    Hard Drives
    2 4TB WD_BLACK SN850X
    2 2TB WD_BLACK SN770M
Some developers do not get the path of a certain user folder correctly. For example, if they want the Documents folder, they'll sometimes get the path of the user's profile and tack "Documents" on the end. In reality, they should query the Windows API and ask it for the user's Documents folder.

They have permission to create the new folder, because the user always has permission to create folders in their own profile. The app/game/whatever is running as that user and can do anything the user can do.

Not sure what this ("Sorry, but no.") is referring to. Can you clarify? My comment was with regard to a game creating a new Documents folder in the C: user folder after already relocating (via the normal method of moving individual folders) it to another drive. It created a new Documents folder back on C: and then out files there. That's irritating, as you can imagine, since there was a reason I had moved it. My expectation for moving the entire Users tree via Kari's methods is in part to prevent that sort of thing.

I do understand what you're saying about how the user folder via %userprofile% should be correctly reflected with Kari's method.
The post was an answer to @pseymour post
 

My Computers

System One System Two

  • OS
    Windows 7 HP 64 - Windows 11 Pro - Lubuntu
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom build
    CPU
    i5 6600K - 800MHz to 4400MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Win 11
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    (4) -1 BX500 SSD - 128G for Windows 7 and Lubuntu
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
  • Operating System
    Windows 7 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus Q550LF
    CPU
    i7-4500U 800- 3000MHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs
    & 1T HDD for data
    Internet Speed
    350 Mb/s
    Browser
    Firefox 64
The post was an answer to @pseymour post
Well I didn't say anything about finding the user profile, the %UserProfile% environment variable, or the system being able to find the user profile. I was talking about a mistake developers often make in finding user shell folders, such as Documents.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
Well, I feel stupid, but it was the wifi connection that was preventing me from making the dummy local account. I ran sysprep again, and it worked again, plus this time I could make the account and log in.

I am going through the registry and changing any C:\Users to U:\Users. So far I've come across one that errored when I went to change it. I think it was something to do with OneDrive. I'll have to check again. Will that be a concern?

I'm also seeing a long list that have C:\Users in the Value Name, not Value Data. Is that something I should be concerned with?

Is there anything else I should plan do do after the registry edits? Or should I then just delete the appdata0 folder and the dummy user account?
 

My Computer

System One

  • OS
    Windows 11 Education version 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Alienware m18 R2
    CPU
    i9-14900HX
    Memory
    64GB DDR5
    Graphics Card(s)
    RTX 4090
    Screen Resolution
    2560x1600
    Hard Drives
    2 4TB WD_BLACK SN850X
    2 2TB WD_BLACK SN770M
I also see that there is still a Users folder on my C: drive. It only contains my personal User folder (though that one also got moved to the U: drive). Inside, there is just one folder: AppData\Local\Microsoft\MicrosoftApps. There is an equivalent folder on the U: drive. Inside the C: drive instance, there are several folders and a dozen or so files. The contents did not get moved to the U: drive, but the folders did. However they are empty. Should I move all of folder contents and files over to U:? The files are executables like media player, notepad, python, etc., so can they be moved without breaking them?
 

My Computer

System One

  • OS
    Windows 11 Education version 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Alienware m18 R2
    CPU
    i9-14900HX
    Memory
    64GB DDR5
    Graphics Card(s)
    RTX 4090
    Screen Resolution
    2560x1600
    Hard Drives
    2 4TB WD_BLACK SN850X
    2 2TB WD_BLACK SN770M
I tried to uninstall OneDrive for now, but it can't be found. I'd like to make sure that's off the system temporarily, and remove all of the registry entries, then reinstall OneDrive later. It's acting messy with the Users tree move. Is it safe to just delete all registry entries that mention OneDrive? And is there a way to ensure the app itself is gone from the system? I'm concerned that Windows can't find it.
 

My Computer

System One

  • OS
    Windows 11 Education version 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Alienware m18 R2
    CPU
    i9-14900HX
    Memory
    64GB DDR5
    Graphics Card(s)
    RTX 4090
    Screen Resolution
    2560x1600
    Hard Drives
    2 4TB WD_BLACK SN850X
    2 2TB WD_BLACK SN770M
 

My Computers

System One System Two

  • OS
    Windows 7 HP 64 - Windows 11 Pro - Lubuntu
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom build
    CPU
    i5 6600K - 800MHz to 4400MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Win 11
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    (4) -1 BX500 SSD - 128G for Windows 7 and Lubuntu
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
  • Operating System
    Windows 7 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus Q550LF
    CPU
    i7-4500U 800- 3000MHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs
    & 1T HDD for data
    Internet Speed
    350 Mb/s
    Browser
    Firefox 64

Latest Support Threads

Back
Top Bottom