Jump to content

copy hidden file via T12 bat file


Recommended Posts

What I want to do is: I want to copy two registry file "NTUSER.dat" and ntuser.dat.log" to c:\Document and setting\default user\

I am using the following in my bat file

XCOPY /A Install\registry\*.* "%DefaultUserProfile%"

but it doesn't copy.... Is there any suggestio that I can fix it?

Link to comment
Share on other sites


The easiest way would be to place those files in $OEM$\$Docs\Default User.

Setup will automatically copy those files over.

with xcopy, you would probably need to use this:

XCOPY /H %systemdrive%\Install\registry\*.* "%DefaultUserProfile%"

/H is used for copying hidden and system files. I'm not sure exactly where you have your install directory but if it's in the same place as most people, the above should work.

Link to comment
Share on other sites

so, any sugguestion?

I tried to copy those files into the default user folder. After I create a new account, all the setting look like the same that I want to be. I just thinking that can I copy those file when I do unattended installation.

Link to comment
Share on other sites

Another method you might consider:

http://www.msfn.org/board/index.php?showto...22ntuser.dat%22

You can start with a fresh ntuser.dat for the default profile and just import any settings you want for all new accounts directly into that. That will prevent any user specific settings you may not want from being present in a newly created account.

Link to comment
Share on other sites

I'm not sure you can do it when you are planning on it. The Default user is opened at the t-12 stage, hence so is ntuser.dat. You shouldn't be able to write over these files until they are closed, ie after reboot.

Have your unattended login as admin, and copy it over in runonce. Next time you log in as a new user, the settings should be in place.

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...