User Account got corrupted in Windows 10

Anonymous
2021-07-16T04:43:29.57+00:00

This morning, I decided to install Apache NetBeans on my Windows 10 PC (which was upgraded from Windows 7 few days ago). I successfully installed the Java JDK from Oracle, and then I ran the NetBeans installer. After a while, it showed that I need to install JDK first, which I already did. I knew how to fix this, by simply adding an environment variable to the JDK.

But, as soon as I clicked on This PC > Properties, BOOM! I got a BSOD telling me insufficient memory or something like that. I allowed it to restart, it performed a disk check, and then when I was trying to sign in to my local account, it said Preparing Windows for quite a while. I finally signed in to a TEMPORARY account. I nearly had a heart attack when I saw all my personal files in C:\ were gone (they weren't gone, read later). Then I started searching for solutions online and found a registry fix of going to ProfileList and deleting one of the folders and removing the .bak from the other folder. I followed the instructions very sincerely.

It didn't work. Then I used my brain to the following:

  1. Run net user administrator /active:yes to create a new admin account.
  2. Login through that account.
  3. Create a new account in PC Settings.
  4. Copy the files from C:\Users\<myoldusername> to C:\Users\<mynewusername>

Oh my good god! Finally I was able to get my files back. Now I want to ask:

  1. The <myoldusername> folder still exists in C:\Users. Windows doesn't let me delete it. How to delete it and remove leftovers?
  2. Any extra steps I should do?

The other partitions weren't affected and I could access my files.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,620 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Carl Fan 6,851 Reputation points
    2021-07-16T08:06:02.603+00:00

    Hi,
    Usually when we have a problem with our account, we can create a new user account to log in. It's the quickest way. Apart from no desktop files, everything else is unaffected.

    1.Steps to Delete a User Account in Command Prompt:
    Press Windows + X keys from the keyboard, select Command Prompt (Admin).
    Type net user and hit Enter to list the user accounts on your device.
    Type net user "User account " /delete and hit Enter to delete the user account.

    2.Disable the Admin Account ...........
    Logon to your own account with admin rights.
    Right click at tart > select Command Prompt (Admin) > at the flashing prompt, copy/paste this
    net user administrator /active:no
    The Admin Account will not show up on sign in screen.
    To enable the Admin account, in the Command Prompt (Admin), type............................
    net user administrator /active:yes

    3.What we could do is copy and paste data from old user account to new user account.
    https://www.easeus.com/pc-transfer/how-to-transfer-data-from-one-user-account-to-another-in-windows-10.html
    Hope this helps and please help to accept as Answer if the response is useful.
    Best Regards,
    Carl

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.