Boot your pc normally, then insert your windows 10 iso usb/cd and launch the following command (from command prompt - admin).
You should substitute X: with its current drive:
Or this one:
My results:
Maybe it isn't possible to repair your local account, but you can create another account and then you can import your files.
This is the microsoft webpage that explains how to do it: Fix a corrupted user profile in Windows
You should substitute X: with its current drive:
Rich (BB code):
dism /online /cleanup-image /restorehealth /source:esd:X:\sources\install.esd
Rich (BB code):
dism /online /cleanup-image /restorehealth /source:esd:X:\sources\install.esd:6 /limitaccess
6 should be the index for windows 10 x64 pro - ENG
Read More:
This worked in my (online) system (my drive was h:):
It even worked with the LimitAccess parameter:
It didn't complain even when I specified the index.
In W10 iso x64 ita, the index for W10 home is 1.
Hence I used 1.
By the way, I'm not sure it used the index.
Even this one worked with and without the LimitAccess parameter:
Rich (BB code):
C:\>dism /online /cleanup-image /restorehealth /source:esd:h:\sources\install.esd
Deployment Image Servicing and Management tool
Version: 10.0.19041.572
Image Version: 10.0.19042.685
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
Rich (BB code):
C:\>dism /online /cleanup-image /restorehealth /source:esd:h:\sources\install.esd /limitaccess
Deployment Image Servicing and Management tool
Version: 10.0.19041.572
Image Version: 10.0.19042.685
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
In W10 iso x64 ita, the index for W10 home is 1.
Hence I used 1.
By the way, I'm not sure it used the index.
Even this one worked with and without the LimitAccess parameter:
Rich (BB code):
C:\>dism /online /cleanup-image /restorehealth /source:esd:h:\sources\install.esd:1 /limitaccess
Deployment Image Servicing and Management tool
Version: 10.0.19041.572
Image Version: 10.0.19042.685
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
Maybe it isn't possible to repair your local account, but you can create another account and then you can import your files.
This is the microsoft webpage that explains how to do it: Fix a corrupted user profile in Windows
Read More:
- Create a new Local Administrator user account:
- Select the Start button, select Settings > Accounts > Family & other users (or Other users.)
- Select Add someone else to this PC.
- Select I don't have this person's sign-in information, and on the next page select Add a user without a Microsoft account.
- Enter a username, password, and password hint (or choose security questions), and then select Next.
- Change the newly created account to an administrator account:
- Under Settings > Accounts > Family & other users, select the account owner name, then select Change account type.
- Under Account type, select Administrator, then select OK.
- Restart the PC, then sign in with the new administrator account.
- Copy files to the new user profile; after you create the profile and have signed in, you can copy the files from the previous profile:
- Open your User folder by selecting Start , typing file explorer into the Search box, and selecting File Explorer in the list of results.
- Select This PC, then select the hard drive that Windows is installed on (it's usually your C: drive), then the Users folder, then the folder with the name of your account.
Warning: Do not change File Explorer view options to show hidden files and folders or show hidden protected operating system files. - Locate the C:\Users\<Old_Username> folder, where C is the drive that Windows is installed on, and Old_Username is the name of the profile you want to copy files from.
- Select all of the files and folders in this folder, then select the Edit menu and select Copy.
- Locate the C:\Users\<New_Username> folder, where C is the drive that Windows is installed on, and New_Username is the name of the new user profile you created.
- Select the Edit menu and select Paste.
- Restart the PC, then log back in as the new user.
- If you have email messages in an email program, you must import your email messages and addresses to the new user profile separately.
Some applications previously installed may need to be reconfigured or reinstalled.
If you were logged into Microsoft Store apps like the Store or Movies & TV you may need to log back into those apps to see your previous purchases or restore settings.
Last edited: