locked
Modiyfing other user HKCU registry RRS feed

  • Question

  • This is a standalone computer, no domain. I would like to run some script to modify the other user registry. Based on the link below, I need to load ntuser.dat file and then modify it.

    https://www.pdq.com/blog/modifying-the-registry-of-another-user/

    Is there a way to modify other user registry without login to that user?

    Meaning the other user name folder is not created yet, under C:\Users folder.

    or is there a better way to do it?

    Johnny


    JC_2016

    Wednesday, March 29, 2017 11:41 PM

All replies

  • This is a standalone computer, no domain. I would like to run some script to modify the other user registry. Based on the link below, I need to load ntuser.dat file and then modify it.

    https://www.pdq.com/blog/modifying-the-registry-of-another-user/

    Is there a way to modify other user registry without login to that user?

    Meaning the other user name folder is not created yet, under C:\Users folder.

    or is there a better way to do it?

    If that user has never logged-on to that computer, the NTUSER.DAT for that user does not exist yet, so, cannot be mounted.
    When a new user first logs-on to a computer, Windows will create a new NTUSER.DAT (copy of the NTUSER.DAT from the DefaultUserProfile).

    If you want certain registry keys/values to be populated for any new user profiles, you can mount the NTUSER.DAT from DefaultUserProfile and modify that.

    Or, methods such as logon-script could do it too.
    Or, ActiveSetup could be used in a similar way.

    Or, LocalGroupPolicy *may* be able to do what you need, it depends upon the feature you are working on.


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Thursday, March 30, 2017 1:15 AM