Renaming the user folder under c:\users


  1. gil
    Posts : 173
    Microsoft Windows 10 Pro 64-bit 10586 Multiprocessor Free
       #1

    Renaming the user folder under c:\users


    Hi all.

    As a user who's part of a domain, my user folder under C:\Users is very long and this is disturbing when I use Bash (WSL).

    the folder is first.last.domainName and that's too long.
    Ideally, I just want my user folder to be my first.last name without the domain name at the end of my username.

    Is it possible? and if yes, what is the safest way to rename it?
      My Computer

  2. Brink's Avatar
    Posts : 56,844
    64-bit Windows 10 Pro for Workstations build 21376
       #2

    Hello gil,

    You can use the method in the tutorial below to rename the user profile folder for the account.

    Change Name of User Profile Folder in Windows 10
      My Computers


  3. gil
    Posts : 173
    Microsoft Windows 10 Pro 64-bit 10586 Multiprocessor Free
    Thread Starter
       #3

    Brink said:
    Hello gil,

    You can use the method in the tutorial below to rename the user profile folder for the account.

    Change Name of User Profile Folder in Windows 10
    Unfortunately, this doesn't work.
    I enabled the Administrator account and issued the command:
    wmic useraccount get name,SID

    The results are:

    Administrator
    DefaultAccount
    Guest
    WDAGUtilityAccount


    It seems that it only list local accounts and not accounts that are part of a different domain.


    Update: I used my domain account login to figure out the SID via RegEdit.
    I then logged out and logged in as the administrator account.
    I renamed the value in the registery.
    I now try to rename the user folder, but I get this message:
    "The action can't be completed because the folder or a file in it is open in another program".

    So now what? :)

    p.s. - Task manager doesn't show my domain account as being used/logged in so there is no process I can find under that user.


    Update 2: Logged in as Administrator account in SafeMode and I was able to rename the folder.
    All good now.

    Thanks!
    Last edited by gil; 07 Oct 2019 at 21:17.
      My Computer

  4. Brink's Avatar
    Posts : 56,844
    64-bit Windows 10 Pro for Workstations build 21376
       #4

    That's great news gil.
      My Computers


 

  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 07:52.
Find Us




Windows 10 Forums