Welcome to the 42 Amsterdam multiserver.
Results 1 to 1 of 1
  1. #1

    Move User directory to another place

    Hi

    As noted before
    Here I'll explain how to move your profile directory to another disk

    Let me start from WHY ? - Why one should move it ?
    There could be many reasons - but mainly - to preserve your data after restore !

    Windows user account directory might be ..or get huge
    It contains data for all programs you've installed
    It contains settings for all programs you've installed
    and it will keep track on what you are doing (hold on ...
    ...not to spy on you but to simplify your work

    Although in last few years - spying became a trend among ALL major companies and they do not even sorry for that.
    but that's not the issue we're going to solve here

    Before we start:

    Requirements:
    besides your C: - you'll need a secondary disk where you going to move your account
    It could be another partition or another disk ...whatever !!
    In this tutorial i'm assuming we have C: - for windows and D: - secondary partition on the same disk


    1. If you have not yet done that - enable few settings in your explorer :
      • Enable to show hidden files
      • Enable to show system files (and yes click OK when windows ask you - are you sure ?)
        to do that:
        • Open "Control Panel"
        • Find "Folder Options" => open it
          you'll get this dialog:

          Name:  202104246ZK8NHLh.png
Views: 0
Size:  23.5 KB

          this one is from Win7 ..and might differ from win10
        • switch to "View" and check required options:

          Name:  20210424U5a5RjqN.png
Views: 0
Size:  28.9 KB

          once you disable the "hide protected operating system files" - you'll get a warning
          click yes...

          Name:  20210424mC6db72H.png
Views: 0
Size:  26.4 KB



        and then "Apply"

        aand boom --- suddenly - few more files will appear on your desktop:

        Name:  20210424z2rzS99d.png
Views: 0
Size:  28.1 KB

        Just go ahead and delete them !!! don't be scared
        (these are just standard windows files - always present - and nothing to worry about)

    2. Now navigate to C/Users/....: to your account directory

      Name:  2021042465D4BEbQ.jpg
Views: 0
Size:  228.8 KB

      there is a bunch of items inside - but check if you can see "AppData" directory previous hidden from you
      if you can see it - we are set and ready for next step
    3. Windows 7 - allows to make symbolic links ..yes...but its cumbersome and unhandy...so
      download the program that will make it more easy:

      https://schinagl.priv.at/nt/hardlink...extension.html

      It will simplify making links across disks !!! (yes in windows its a thing - if linux user asks)
      ....
      Install it ..



    Ok ..once all is done - we are ready to move on
    Lets move YOUR account !!!



    Normal user account - located at: "C:/Users"
    and they look like this:

    Name:  20210424Ja38GUNw.png
Views: 0
Size:  24.1 KB

    and you cannot just move/copy it - there are files system uses at the moment
    so ..
    Lets create a temporary user:

    Click on "Start" button and in "Run" field type compmgmt.msc
    you should get this:

    Name:  20210424TLk8b2X6.jpg
Views: 0
Size:  85.9 KB

    open "Local Users and Groups"
    select "Users"
    you'll get this:

    Name:  202104249ti73jT3.png
Views: 0
Size:  25.9 KB

    Right click into empty space - and "New User"

    Name:  20210424X4M9JT07.png
Views: 0
Size:  12.0 KB

    Create one - name it whatever - its an temporary user
    and set few settings accordingly :

    Name:  20210424ip0UihSb.png
Views: 0
Size:  12.2 KB

    Click "Create"
    Click "Close"



    Now - we'll need to give new user admin rights:
    while in the same whidow - double click on new user "

    Name:  202104242UQsZr8W.png
Views: 0
Size:  6.7 KB

    switch to "Member Of" tab:

    Name:  20210424O08b1WI9.png
Views: 0
Size:  4.6 KB

    and click "Add"
    you'll get this:

    Name:  20210424npfOh9nc.png
Views: 0
Size:  10.5 KB

    click "Advanced"

    Name:  20210424MVKx9uOl.png
Views: 0
Size:  19.5 KB

    Click "Find now"

    Name:  20210424CPj69WEo.png
Views: 0
Size:  32.6 KB

    first line - is "Addministrators" - double click on it to select
    you should see it being selected:

    Name:  202104240Bo8kZb2.png
Views: 0
Size:  11.6 KB

    we are done !!!
    Click OK - you should get this:

    Name:  20210424VVLKievs.png
Views: 0
Size:  4.7 KB

    Click Apply (previous dialog)
    and click OK to finish

    ------------------------------
    We are done for this part
    User creation is complete


    After this you have 2 admins in your system
    You and temporary user
    Before we proceed - log out ...and login with new temporary user to test that all is workign
    in the new temporary account - you should be able to see windows directory contents

    Once all is working - reboot (allow windows to properly save everyting - and close all accounts)
    After reboot - WE'LL START MOVING - SO DO NOT LOGIN INTO MAIN ACCOUNT !!!
    login into temporary one

    Name:  20210424o6DKJ0g1.png
Views: 0
Size:  152.7 KB

    and lets do this:
    1. Open explorer
    2. Navigate to your disk where you want to store your account (its D: in our case)
    3. Create a directory called "==SYSTEM==" (char "=" is used to force windows always sort this directory above any other - but you are free to name it the way you like)

      Name:  202104241r1x340t.png
Views: 0
Size:  25.8 KB

    4. Navigate to C:/Users/your-main-account.... and copy it to new location on D:/===SYSTEM===/
    5. Now most interesting part - rename "C:/Users/your-main-account" to "C:/Users/_your-main-account" ...just in case something goes wrong (will be deleted afterwards)

      Name:  20210424J848A5ki.png
Views: 0
Size:  29.0 KB

    6. Navigate to D:/===SYSTEM===/ and right click on copied account - click on "Pick Link Source"

      Name:  20210424E08bomIc.png
Views: 0
Size:  2.1 KB

    7. Navigate to C:/Users/ and drop new symbolic link as "Junction"

      Name:  202104241GVOW3mo.png
Views: 0
Size:  133.4 KB

      you should get this:

      Name:  20210424Othvit7A.png
Views: 0
Size:  13.5 KB


    All done - log out - and check your main account
    If all works fine - and no errors - you can safely remove the "C:/Users/_your-main-account" ...

    All this - is just moving the account
    Whole account !!!

    It will provide you with saved data when you restore your windows from capsule
    but it will not provide any protection

    The whole process is very complicated as it is already - so lets stop here
    I will create another tutorial to create "SAVE" way of moving an account that will prohibit virus distribution
    while keeping all the settings
    Last edited by Ostap; 24-04-2021 at 05:10.
    ....... Always Look On The Bright Side of Life

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to top