mrloopy Posted February 24, 2007 Share Posted February 24, 2007 Hi,I'm trying to copy a file (imon.ini) to the new user's home directory when they first startup. In my unattend.xml that is called during sysprep, I have a runsynchronous command: copy c:\imon.ini %userprofile% (imon.ini is prestaged on c:\).But when I reseal and check the user's directory, that file is not there. Does anyone know why this wouldn't work? Is the C:\users\%userprofile% directory not created until after OOBE section is completed?Any ideas would be appreciated... Link to comment Share on other sites More sharing options...
gtj Posted February 25, 2007 Share Posted February 25, 2007 copy is a built-in command not an executable.try cmd.exe /c copy ..... Link to comment Share on other sites More sharing options...
mrloopy Posted February 25, 2007 Author Share Posted February 25, 2007 That was it, thanks. Link to comment Share on other sites More sharing options...
Gwido Posted February 26, 2007 Share Posted February 26, 2007 (edited) This is similar to the question that I asked...Does anyone know if the FirstLogonCommands\SynchronousCommand in autounattend.xml setting works during an upgrade process to add a link to the desktop of the users profile by using a similar command like?cmd.exe /c copy c:\<mydir>\*.lnk %userprofile%\desktopThis is during the OOBE pass of the UpgradeCheersGwido Edited February 26, 2007 by Gwido Link to comment Share on other sites More sharing options...
Gwido Posted February 26, 2007 Share Posted February 26, 2007 I have managed to test the above solution during a DVD Upgrade from MCE to Home Premium,All sortedThanks GuysGwido Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now