NTUSER.DAT and UsrClass.dat Explained: Where Windows Keeps Your User Registry Files and Why You Should Not Touch Them


Last reviewed: November 25, 2026. Steps compared with Microsoft documentation, none run on a real PC. The top picture is an illustration.
The NTUSER dat file, written NTUSER.DAT, is the registry file that stores settings for one Windows user account. It sits in that user's profile folder. Windows also keeps a second per-user file, UsrClass.dat. This guide explains what both files hold, where they live, and why you should leave them alone.
New to the registry as a whole? Our PC repair guides start with the basics, and the sections below stay with these two files. Where a problem belongs to another guide, we point you there rather than repeating its steps.
Quick answer
Quick answer
- NTUSER.DAT is the per-user registry hive. Windows loads it for a user at sign-in and it holds that user's application and desktop settings.
- UsrClass.dat is a second per-user file. The Microsoft pages we opened do not name it, so its location is hedged in this guide.
- Both files are normally in use while the user is signed in, so copying them usually fails. Copying them is not a backup method.
- Do not delete or replace NTUSER.DAT to reset a profile. Create a new account and move your personal files into it.
- Back up your personal files first. Make a restore point before any change that touches the registry.
In this guide
- What the NTUSER dat file and UsrClass.dat are
- Where each file lives and whether to touch it
- What happens at sign-in and sign-out
- Why you cannot copy these files easily
- Back up your data, not the hive
- When a profile is corrupt or temporary
- Why copying the hive between PCs is a bad idea
- Can you delete NTUSER.DAT to reset a profile?
- Safe things you can check yourself
- Frequently asked questions
- How this guide was checked
- Sources
What the NTUSER dat file and UsrClass.dat are
A registry hive is a group of keys, subkeys and values that Windows stores as files on disk. Microsoft describes each hive as having supporting files that are loaded into memory when the operating system starts or when a user logs in. For the wider layout, read registry hives, keys and values explained.
Microsoft's Registry Hives page says that a separate user profile hive is created for each user who logs on. That hive holds the user's application settings, desktop, environment, network connection and printer information. User profile hives are located under the HKEY_USERS key.
The NTUSER dat file
The NTUSER dat file is the user profile hive as it is stored on disk. The Registry Hives page lists Ntuser.dat and Ntuser.dat.log as the supporting files for HKEY_CURRENT_USER. That registry branch always refers to the account that is signed in. So the settings you see under HKEY_CURRENT_USER come from the NTUSER.DAT of the user who is currently signed in.
Every account on the PC has its own NTUSER.DAT. Two people who share one computer do not share this file, which is why one person's desktop and app settings can differ from another's.
UsrClass.dat
UsrClass.dat is the other per-user hive file. Its usual location is AppData\Local\Microsoft\Windows in the profile folder, and it is generally described as holding the user's class registrations. The Microsoft pages we opened do not name this file or confirm that path. Treat both the location and its role as unconfirmed, and check them on your own build before you rely on them.
Machine hives and the Default entry
The machine hives are stored in the System32 config folder, at %SystemRoot%\System32\config. Microsoft lists supporting files there for HKEY_LOCAL_MACHINE, HKEY_CURRENT_CONFIG and HKEY_USERS\.DEFAULT. The page says these files are updated each time a user logs on.
The Registry Hives page we opened does not describe a separate Default profile NTUSER.DAT template. This guide therefore does not explain one. If Windows reports that a system hive file is missing, our guide on Windows could not start config SYSTEM covers that case.
Where each file lives and whether to touch it
The table lists the files you are most likely to see in a support question. The first three rows are per-user files. The last two rows belong to the machine.
| File | Where it is | What it holds | Touch it? |
|---|---|---|---|
| NTUSER.DAT | C:\Users\YourName, in the profile folder | That user's registry settings, loaded at sign-in | No. Do not copy, edit, delete or replace it |
| UsrClass.dat | AppData\Local\Microsoft\Windows in the profile folder, not confirmed by the pages we opened | Per-user class registrations (not confirmed by the pages we opened) | No. It is in use while the user is signed in |
| Ntuser.dat.log | Next to NTUSER.DAT | A transaction log of changes to the hive | No. Leave it with the hive it belongs to |
| SYSTEM, SOFTWARE, SAM, SECURITY | %SystemRoot%\System32\config | Machine-wide registry hives | No. These are not user files |
| Default | %SystemRoot%\System32\config | Supporting file for HKEY_USERS\.DEFAULT | No |
What a hive holds matters in practice. A user's startup entries can be stored in their own hive, which our guide on registry startup entries in Windows explains. Entries left by removed apps can also stay behind, as covered in leftover registry entries after uninstalling.
What happens at sign-in and sign-out
Microsoft's Registry Hives page says a hive's supporting files are loaded into memory when the operating system starts or a user logs in. For a user, that means the profile's NTUSER.DAT is brought into the registry when the account signs in. The route below is a simplified view of that process.
- Sign-in starts. Windows identifies the account and its profile folder.
- The user hive loads. The profile's NTUSER.DAT is loaded under HKEY_USERS, as the Registry Hives page describes.
- The current user points to it. HKEY_CURRENT_USER refers to the hive of the account that is signed in.
- The session runs. Settings are read and written to the loaded hive while the user is signed in. The files stay in use.
- Sign-out releases the hive. The hive is unloaded at sign-out. This step is general behaviour. The Microsoft pages we opened do not describe sign-out timing, so check your build's documentation before you rely on it.
You should see: normal sign-in and sign-out with no action from you. Nothing in this route needs a manual step.
If this does not help: if sign-in shows a profile message, read the section on corrupt or temporary profiles below before you change anything.
Good to know
The Registry files page we opened describes RegLoadKey and RegUnLoadKey. These are programming functions that load a registry file into a subkey under HKEY_USERS or HKEY_LOCAL_MACHINE, and later unload it. They are developer references, not a sign-out guide for end users.
Why you cannot copy these files easily
You may find NTUSER.DAT in your profile folder, but it is hard to see and harder to copy. We could not confirm on a Microsoft page that these files are hidden by default, so check on your own PC. To view hidden items read-only, open File Explorer, select View, then Show, and turn on Hidden items. Menu names can differ between builds.
Even when you can see the file, copying it while you are signed in usually fails. Windows keeps the hive loaded for the active account, so the file is in use. The Microsoft pages we opened do not state this locking rule in those words. We describe it as general Windows behaviour, and it is the reason a copy attempt is not a reliable backup.
To list every file in a profile folder, including hidden ones, you can run this read-only command in a Command Prompt window:
dir /a "C:\Users\YourName"
The command only lists files. It changes nothing. Replace YourName with the folder name you see under C:\Users.
Good to know
Microsoft defines a .log file as a transaction log of changes to a hive. The pages we opened do not explain how Windows uses .LOG1 or .LOG2 files, so this guide does not describe them.
The size of NTUSER.DAT varies between accounts. Microsoft's pages give no typical size. A hive usually grows with the settings and data stored in it, so a large file is not a fault by itself. You can read the size in the file's Properties window without changing anything.
Back up your data, not the hive
Before you change anything
Back up your personal files before any change to a profile. If your PC uses BitLocker, keep the BitLocker recovery key somewhere safe and easy to find. Create a restore point before a risky change, using the steps in our System Restore guide.
A proper backup protects the files you work with: documents, pictures, desktop files and downloads. Use a backup option built into Windows, or copy your folders to an external drive. Menu names for backup options can differ between builds, so search your own Settings for the current name. If your Documents or Desktop folder has moved or gone missing, see how to restore the default location.
Do not use the registry hive as your data backup. A copy of NTUSER.DAT is not a copy of your files, and it cannot be restored cleanly to a different PC or account. For a full image of the whole PC, our guide on backing up a Windows PC with a system image explains that option.
If you plan to use a restore point, our guide on using System Restore in Windows covers the steps. Whether a restore point brings back registry data is a separate question, covered in our guide on whether System Restore restores the registry. Remember that a restore point is a safety net, not a substitute for a file backup.
When a profile is corrupt or temporary
Sometimes Windows signs a user in to a temporary profile. The sign-in works, but settings and files may look missing. Microsoft's pages we opened do not describe this case in detail, so the points here are general. The safe first step is to keep the damaged profile folder in place and back up what you can reach. Do not delete it as a first step.
A corrupt user profile has its own symptoms and fixes. Our guide on how to fix a corrupt user profile covers the signs to look for and the safer order of steps.
Some profile problems show up as registry errors on screen. If you see error 0x800703f1 about the configuration registry database, our guide on error 0x800703f1 and a corrupt registry database describes that case.
Access problems on keys are a different issue. If Windows refuses access to a registry key, read our guide on fixing registry permission errors in Windows first.
Why copying the hive between PCs is a bad idea
Copying NTUSER.DAT from one PC to another, or from one account to another, is a common idea that usually fails. This is general guidance rather than a documented Microsoft procedure, and it rests on three points.
First, the hive belongs to one account. The permissions on the profile folder also belong to that account, so a copied file often does not match the new sign-in. Second, the hive holds app settings, network connections and printers. Those may not match the new PC, and some app settings are stored in branches that differ on 64-bit Windows. Our guide on 32-bit and 64-bit registry keys explains that branch. Third, the hive can hold policy-driven settings. Our guide on settings managed by your organization covers that case.
To move a person's work to a new PC or account, move the personal files, then set up the account on the new PC. The hive does not need to travel with them.
Can you delete NTUSER.DAT to reset a profile?
No. Do not delete NTUSER.DAT to reset a profile. Deleting or replacing a user's hive can remove that user's settings and can stop the account from signing in cleanly. The Microsoft pages we opened do not describe a supported reset this way, so this guide gives no steps for it.
Use this decision tree to choose a safer route.
- Do you need a fresh profile for this person?
- Yes: create a new local account, then move the personal files into it.
- No: keep the existing profile and follow the guide for the specific problem.
- Is the profile damaged, or does Windows say it is temporary?
- Yes: back up the personal files first, then read the corrupt profile guide before any change.
- No: nothing here calls for a reset.
If you are not sure which route fits your case, the Repair Assistant can ask you a few questions about what you see and point you to the right guide.
To create a new local account, use the menu path below. Menu names can differ between builds, so search Settings if your screen looks different.
SettingsAccountsOther users
On Windows 10 the same area can be labelled Family and other users. Select Add account, follow the prompts, and create a local account. You should see the new account on the sign-in screen after you finish.
Then move the personal files you need. This is a checklist of choices, not a set of changes to the old profile:
- Documents and pictures: copy them to the new account or an external drive.
- Desktop and downloads: copy any files you still need.
- App data: check each app's own sign-in or export option, because app settings do not move with a file copy.
If this does not help: if the old account cannot be signed in, keep it as it is and read the corrupt profile guide before you change anything else.
Safe things you can check yourself
These checks are read-only. They help you understand the files without changing them.
- Open the profile folder with the dir command above, and note the file names and sizes.
- Open Properties for NTUSER.DAT and read its size and dates on the General tab. Click Cancel to close the window without changes.
- Confirm that the hive is in use by checking whether copying it fails while you are signed in.
For a wider view of registry symptoms, read our guide on registry problems, symptoms and causes. It helps you tell a registry issue apart from a file or app issue.
No Microsoft page we opened documents a speed or repair benefit from registry cleaning, so this guide does not recommend a cleaner for these files. Our guide on corrupted registry repair in Windows covers the cases where a repair is the right topic.
If a blue screen names the registry, see our guide on registry error blue screen fixes. If your PC is managed by an organization, some settings are locked by policy and cannot be changed on the PC.
Before you change anything
Regedit has an advanced Load Hive feature that can open a hive file. This article does not teach it. Loading or editing another hive can change settings and can lock an account out. Back up your files and create a restore point first. Our guide on how to back up the Windows registry covers the registry backup step, and our guide on the registry editor not opening in Windows 11 covers a common access problem.
Frequently asked questions
About the files
What is the NTUSER dat file?
It is the per-user registry hive for one Windows account. It sits in that user's profile folder, is loaded when the user signs in, and holds settings such as application and desktop preferences for that user.
Is UsrClass.dat the same file as NTUSER.DAT?
No. It is a second per-user file. The Microsoft pages we opened do not describe it, so its location and role are treated as unconfirmed in this guide.
Why can I not copy NTUSER.DAT while I am signed in?
Windows keeps the hive loaded while the account is signed in, so the file is in use. This is general Windows behaviour. Copying the file is not a reliable backup, so back up your personal files instead.
Where are the machine hives stored?
They are in the System32 config folder under the Windows folder, written as %SystemRoot%\System32\config. Change them only through supported Windows tools, and never by copying files over them.
Reset and repair questions
Can I delete NTUSER.DAT to fix a profile?
No. Deleting or replacing it can remove the user's settings and can stop the account signing in cleanly. Create a new account and move your personal files instead.
Should I copy NTUSER.DAT to a new PC?
No. The hive belongs to one account, its permissions belong to that account, and it holds settings that may not match the new PC. Move your personal files instead.
Does a registry cleaner help with these files?
No Microsoft page we opened documents a speed or repair benefit from registry cleaning. For that reason we do not recommend one for these files.
What should I do if my profile is corrupt?
Back up your personal files first and keep the damaged profile folder in place. Then read the corrupt user profile guide listed in the section above before you change anything.
How this guide was checked
The steps and facts in this guide were compared with Microsoft documentation where that documentation exists. The steps were not run on a real PC, and no lab testing or user testing was done for this guide. Where a claim is not on a Microsoft page we opened, the text says so and hedges it.