Jump to content

Copy Default User settings after unattended instal


Recommended Posts

Hi all,

I have searched the forum but can't find an answer to this.

I have created an unattended install CD as per the instructions on the web site and set it to create a temp admin account, log on automatically to this account after setup and it then runs RunOnceEx. This all work fine until I try to run a CMD file that copies a pre-defined Default User profile over the existing one. When the file tried to xcopy over the existing profile, I get an access denied error. I've even tried deleting all the files/folders from the existing profile before copying; all the files/folders get deleted OK but get the same error when xcopy runs.

I'd really appreciate any help with this.

Many thanks,

John

DefUserCopy.cmd file:

cmdow @ /HID

@echo off

RD /S /Q "c:\Documents and Settings\Default User\application data"

RD /S /Q "c:\Documents and Settings\Default User\cookies"

RD /S /Q "c:\Documents and Settings\Default User\desktop"

RD /S /Q "c:\Documents and Settings\Default User\favourites"

RD /S /Q "c:\Documents and Settings\Default User\local settings"

RD /S /Q "c:\Documents and Settings\Default User\my documents"

RD /S /Q "c:\Documents and Settings\Default User\nethood"

RD /S /Q "c:\Documents and Settings\Default User\printhood"

RD /S /Q "c:\Documents and Settings\Default User\recent"

RD /S /Q "c:\Documents and Settings\Default User\sendto"

RD /S /Q "c:\Documents and Settings\Default User\start menu"

RD /S /Q "c:\Documents and Settings\Default User\templates"

DEL /Q "c:\Documents and Settings\Default User\ntuser.*"

XCOPY %systemdrive%\install\defuser\*.* "%systemdrive%\Documents and Settings\Default User\" /e /y /q /h

EXIT

Link to comment
Share on other sites


Have you tried importing them directly from the CD using the $Docs folder under $OEM$? This folder is supposed to be automatically copied over to the documents folder (default is %systemdrive%\Documents and Settings) at the same time as the rest of the information is copied across. I have yet to do anything with this folder, so I can't tell you how effective it is. See here for more information on using $Docs.

Hope this helps. Good luck.

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...