Jump to content
Sign in to follow this  

Overwrite NTUSER.DAT - Logon Script

Recommended Posts


Need a little guidance on Overwriting NTUSER.Dat when a user logs on to clean everything the previous session has changed...User Data and Such.

ANyone have any Idea. Script is easy to write but getting it to execute before windows starts using the NTUSER.DAT file is the trick.

All help mucho appreciated....



Share this post

Link to post
Share on other sites

Since your login script will run after the user logge on the ntuser.dat file is in use

and cannot be overwriten.

if you want to clean the last session settings consider using a mandatory profile.

mandatory profile is a profile that wont save the user session settings upon logoff.

to allow such profile, log off the current user, navigate to "doc & settings\%username%"

directory and change the ntuser.dat file extension to .man (ntuser.man).

hope that helped

If you repeat it <script> it

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...