This is my first time creating a Windows 7 sysprep image and what we normally do with XP is make the C drive the system partition and the D partition store the users desktop, documents, pictures folders etc. (The profile is still stored in C:\users but we move the location of those folders editing the following reg keys HKEY_USERS\Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders) Normally I would apply these changes to the default user profile.
When making these same changes to Windows 7 and running sysprep all these changes to the default user ntuser.dat file are lost. When I have tried to use FirstLogonCommands (OOBE) or RunSynchronous (Specialize) using the following batch file neither seem to have an effect.
<FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <Description>test</Description> <RequiresUserInput>false</RequiresUserInput> <CommandLine>C:\script\first.cmd</CommandLine> </SynchronousCommand> </FirstLogonCommands>
--first.cmd start /wait reg load "hku\default" "C:\Users\Default\NTUSER.DAT" start /wait reg import C:\script\RedirectDocumentsDesktop.reg start /wait reg unload "hku\default"Can anyone suggest what I might be doing wrong or a better way of doing it?