ntuser.dat

Page 1 of 2 12 LastLast

  1. Posts : 213
    Windows 10 Pro
       #1

    ntuser.dat


    Greetings
    Why do I have so many ntuser.dat files?
    I counted 20 with various extensions: blf, regtrans-ms, pol, log1, log2, ini
    I'm in windows 10 pro ver.1709 build 16299.248
    thank you
      My Computer


  2. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    You most likely already know that ntuser.dat is your user profile, loaded at sign in as the HKEY_CURRENT_USER registry hive. You also understand that this is constantly being updated to reflect the changes that happen as you use the PC.

    There transactions are not written to ntuser.dat as they happen, that usually occurs as you sign out or shut down. Instead they are written to the regtrans-ms files (short for registry transactions). Together all these types of files help prevent the registry becoming corrupt, the changes only being committed in a controlled manner at sign out. An 'uncontrolled' shutdown like a BSOD would leave ntuser.dat unmodified, so at next sign in it should be free of any changes that happened in the previous abruptly terminated session.

    Best leave them alone then :)
      My Computers


  3. Posts : 213
    Windows 10 Pro
    Thread Starter
       #3

    I didn't know what is the purpose of ntuser.dat files.
    thank you for clarifying.
    I won't touch them following your advice.
    many many thanks
      My Computer


  4. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #4

    You're welcome, glad to have helped clarify what's going on.
      My Computers


  5. Posts : 213
    Windows 10 Pro
    Thread Starter
       #5

    so many ntuser.dat files


    Still I don't understand why as a single user I have so many ntuser.dat files from different dates.
    Now I understand that it keeps my user profile so as a single user should I have tens of files of the form:
    NTUSER.DAT{class like expression}.TM.blf or .TMcontainer0000....#.regtrans-ms
    dates are from Dec. 2017 to May 2018
    thank you
      My Computer


  6. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #6

    zivshosh said:
    Still I don't understand why as a single user I have so many ntuser.dat files from different dates...
    The transaction logs (regtrans) are there as a store for recent changes. Their purpose is to delay writing changes immediately to ntuser.dat until they are confirmed as being valid. Should a bad change be made that crashes the PC then the earlier ntuser.dat remains intact and will allow the machine to work at the next boot.
      My Computers


  7. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #7

    There's nothing wrong to clean up those redundant backup files. I have been doing this for years and Windows should do it as part of clean up too. I use CCleaner to include those files under Current User and also delete those under: C:\Windows\System32\config as you can see in the screen shot.
    Of course, it is always advisable to have a backup image of Windows in case something goes wrong.
    ntuser.dat-p1.jpg
      My Computer


  8. Posts : 136
    Win10 Pro x64 1607
       #8

    zivshosh said:
    ...should I have tens of files of the form:
    NTUSER.DAT{class like expression}....
    Hi,

    You may select all "ntuser.dat...." files and delete them.
    System is not going to allow deletion of active/critical ones.
    It's absolutely safe but do not do that to another (if exists) not active user.
      My Computer


  9. Posts : 4
    Windows 10
       #9

    topgundcp said:
    There's nothing wrong to clean up those redundant backup files. I have been doing this for years and Windows should do it as part of clean up too. I use CCleaner to include those files under Current User and also delete those under: C:\Windows\System32\config as you can see in the screen shot.
    Of course, it is always advisable to have a backup image of Windows in case something goes wrong.
    ntuser.dat-p1.jpg
    Hi topgundcp do you mind sharing a full list of your ccleaner include custom deletion list? wanna to add the same list as yours on my ccleaner ;P
      My Computer


  10. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #10

    @suta
    Here you go. Unzip the file to CCleaner installation folder. Run CCleaner->Options->Advanced and put a check mark on "Save All Settings to INI file"
    go thru the inclusion list and delete what you don't want or does not apply to you.

    WARNING: Make sure Windows Updates is not running, otherwise it will delete all Updates Files causing Updates to fail.

    ccleaner.zip
      My Computer


 

  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 18:02.
Find Us




Windows 10 Forums