Windows 10: Can't install VS Code after changing username and user directory name

Discus and support Can't install VS Code after changing username and user directory name in Windows 10 Installation and Upgrade to solve the problem; So I had to install a new hard drive recently. However the laptop technician made a typo with my name. I tried to change it in the control panel, but I... Discussion in 'Windows 10 Installation and Upgrade' started by SamsonLiu, Sep 16, 2020 at 11:32 AM.

  1. SamsonLiu Win User

    Can't install VS Code after changing username and user directory name


    So I had to install a new hard drive recently. However the laptop technician made a typo with my name. I tried to change it in the control panel, but I still see my old wrong name in git and cmd. So I followed this guide to change the username. I changed the name in both netplwiz window, the registry table, as well as my folder name C:\users\{oldName} => C:\users\{newName}.


    However, after the change, I noticed that some of my software is broken and can't be uninstalled in the "Apps and Feature" panel in the Settings due to the name change.


    And when I tried to reinstall VS Code I assume it will happen for other software. I just haven't gotten around to it, I get an error saying:


    Setup was unable to create directory "C:\users\{oldName}",

    Error 5: access is denied.


    Thanks for the help in advance!

    :)
     
  2. Martmcd Win User

    How to change the name of the user

    You cant reply to the automated email, it is just notifying you that a thread has a response.

    going back to your original post.

    when you create a new user, windows creates folders under the c:\Users directory with the account name (ie Geoff) if you rename the user, although the new name is shown on login etc the directory names don't change.

    the easiest way to get rid of Geoff is to -

    • change the username to something else (or back to Geoff)
    • create a new user with your name
    • copy all your documents, photos, videos etc. from Geoff to your new user
    • delete the Geoff user account and remove folders etc.
    this can all be done in user accounts as suggested by Ruth
     
  3. Change the user name in Windows 10

    Hi Rick,



    Thank you for posting your query in Microsoft Community.

    I understand that you want to change the name of the user account. Let me assist you on this issue.

    You may please follow the below
    steps to change the username and check.

    • Press Windows key + X key.
    • Click on Control Panel.
    • Under view, select large icons.
    • Go to User Account.
    • Click on Manage another account.
    • Select the User Account for which you want to change the username.
    • Click on Change the username.
    • Now enter the new name for the account.
    • Click on Change Name button.
    Hope the information helps, do reply if you need further assistance.



    Thank you.
     
  4. Can't install VS Code after changing username and user directory name

    Change the user name in Windows 10

    This advice was most helpful!

    -Rick

     
    GabrielMolina1, Sep 16, 2020 at 11:34 AM
    #4
Thema:

Can't install VS Code after changing username and user directory name

Loading...
  1. Can't install VS Code after changing username and user directory name - Similar Threads - Can't install Code

  2. How to change the name in the user directory

    in Windows 10 Ask Insider
    How to change the name in the user directory: I tried using Regedit but then I can only access a temporary account. Command prompt doesn’t let me change user names despite running as admin. submitted by /u/showandabe [link] [comments]...
  3. How to change Windows Account Name and User Profile Directory

    in AntiVirus, Firewalls and System Security
    How to change Windows Account Name and User Profile Directory: I have tried going through the Control Panel via User Accounts and never get an option to Rename the account. I have also tried 'compmgmt.msc' and also no option to rename. 'secpol.msc' returns a 'not found'. Anything I'm missing? Trying to change 'hjros' to 'hjrose'....
  4. Display Name vs Profile user name?

    in User Accounts and Family Safety
    Display Name vs Profile user name?: I created a local user account during the Windows 10 installation process and that username which I created are a mix of letters and numbers which is also displayed on the Windows logon screen. Is there way to add my First and Last name as the display name to the Windows...
  5. user name can't change or delete

    in AntiVirus, Firewalls and System Security
    user name can't change or delete: when I log in for first time on new PC , I log in using new user name , after one month I change the user name for another , but is still see the old user name appear on all files Attached is example : i can't remove user name : homam even it's not active how to delete...
  6. c:\users\ the directory name is invalid

    in Windows 10 BSOD Crashes and Debugging
    c:\users\ the directory name is invalid: If I try to download a pdf OR open some of my own documents I keep getting the error message the directory name is invalid https://answers.microsoft.com/en-us/windows/forum/all/cusers-the-directory-name-is-invalid/5a4e7ab8-add5-41f4-be72-b7441d994e35
  7. Changing C:\Users\USERNAME

    in Windows 10 Customization
    Changing C:\Users\USERNAME: When setting up a computer, you are initially prompted to create a username. Once this name is created, how can it be changed? To be clear, you can change your personal account name (found under Settings>Account>Your Info), but this does not change C:\Users\USERNAME (or...
  8. Admin Directory Name Change

    in Windows 10 Network and Sharing
    Admin Directory Name Change: I'm using Windows 10 Home edition. I have two folders in the Windows/Users directory: "Public" and "WARNE". I want to change the name of the "WARNE" folder... I'm having no luck finding out how to do this... Please help... Thanks!...
  9. Admin user directory truncated name!!

    in User Accounts and Family Safety
    Admin user directory truncated name!!: I've got my Win10 user account info displayed, it's an admin account and there is my outlook email account attached. When I drill down to my user directory in file explorer under users the directory name is my first name truncated. So for example if the admin account was...
  10. Can't change User name

    in User Accounts and Family Safety
    Can't change User name: After I installed Windows 10, I created a Microsoft online account to see what it was like. During the process, it changed the name on my local Windows 10 user account. I used Control Panel to go to Users, but there seemed to be no way to change the name back to the original....