I found an error in the Sysprep.cmd file, totally my fault.
I changed the line:
C:\Windows\System32\Sysprep\Sysprep.exe /audit /reboot /unattend
:\Relocate.xml
...to...
C:\Windows\System32\Sysprep>Sysprep.exe /audit /reboot /unattend
:\Relocate.xml
That is most definitely wrong, not a wise move.
I simply cannot understand why you are willingly trying to make this simple and easy procedure as difficult as possibhle? Why on earth are you even using a batch file to run two simple commands, to stop WMP Sharing Service and then run Sysprep?
(Above two questions are rhetorical, I do not expect an answer!)
The
> sign is never used in path to a command. The one and only correct syntax to run
Sysprep with answer file
Relocate.xml stored on root of drive
D: is as follows:
C:\Windows\System32\Sysprep\Sysprep.exe /oobe /reboot /unattend:D:\Relocate.xml
I will be using the file Relocate.xml that you gave me Megahertz07, adapted as per Kari's post above because it is only the Users I want on drive D:
Code:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>
</component>
</settings>
</unattend>
That answer file is correct, no syntax errors.
OK, further: I got a PM asking why I told that the
CPI Offline Image line in answer file is not required. I never answer this kind of personal messages because stuff like that when only asked and answered between two members in private messages does not benefit any other members. Therefore, if you have a question you should always post it instead of asking it privately; when (if) the question gets a valid answer, it will then benefit everyone.
OK, the answer: Sysprep does not require nor need access to Windows install media. That line was accidentally left there by me when writing the tutorial, remains from Vista era. It is automatically generated when creating an answer file with
Windows SIM (System Image Manager).
The line is completely unnecessary, not required, although it does no harm when left there.
Finally, something I really can't understand: This whole issue of the OP is directly related to my tutorial at
User Profiles - Create and Move During Windows 7 Installation - Windows 7 Help Forums
If the OP had done as should be clear to anyone, the logical thing and asked about this in the tutorial thread, I had got a notification about it straight away, two weeks ago. Starting a new thread instead of posting the question where it clearly belongs, I or any other tutorial writer have no means to know about it, if we do not browse through all new threads. Even if I had browsed through new threads, title of this one was uninteresting to me and I had not click to read it.
I only got to know about this thread when a senior member sent me a message asking if I could take a look.
Short, for future readers of this thread: in case your issue is directly related to a tutorial here at Seven Forums or our sister sites EightForums.com and TenForums.com, do not start a new thread about it but instead explain your issue in a post in that tutorial thread.
Kari