In order to multicast our restore, we need to embed the Windows image inside our OS X image. To accomplish this, create an image of your syspreped XP partition using Winclone. At the time of this writing, you couldn’t download Winclone from their site so I had to Google for a download link. I have Winclone save the image to the /Library/Management folder on the OS X side of the master machine. I keep a lot of my scripts in this location already.
Now we need to get an image of our OS X install with the XP image inside it. Use DeployStudio to grab an image of the OS X partition as you normally would.
Now we setup our Dual Restore workflow in DeployStudio Admin. First we tell it to Partition the disk.
Then we restore the OS X partition.
We then prompt for the machine’s name.

We tell the machine to run all these changes when OSX boots for the first time and confirm ARD will be turned on.
Then we bind the OS X side to Active Directory. You can also bind to Open Directory at this time if you use OD.
Finally, we’ll restore the Windows partition using this script.
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin export PATH
# Restore the Windows image using WinClone
“/Volumes/Macintosh HD/Library/Management/ArchXP.winclone/winclone.perl” -self-extract
exit 0
Now boot a target machine into DeployStudio and run the workflow you just created. If everything has gone smoothly, the OS X partition will restore and then the Winclone will restore the XP Partition. Your machine should reboot into Leopard and it should rename itself, join OD & AD. Now you need to let windows boot and reboot to finish it’s sysprep process. I like to use the following command to tell the machine to boot into Windows one time only.
/usr/sbin/bless -folder "/Volumes/UNTITLED" -legacy -setBoot -nextonly














Hello! I figured I would drop a short comment considering that I’ve spent the better part of the past half an hour perusing through your weblog articles. I’m fascinated with the good quality of writing you’ve got yourself here, and I’ll definitely be returning to say whats up again in the future. Anyhow I will not take up any more of your time, I just desired to say hello there and enjoy the week.
Thank you for the kind words Odessa!
Does this procedure work for Windows 7 64-bit to?
So should I be able to manually do this? If I were to place the WinClone image into the desired folder, and place the .sh script on the OS X admin desktop and run it upon first boot after manually imaging with a DMG (boot off disk > Disk Utility > Restore) would this script deploy the Window’s partition (from the included WinClone image)? Does WinClone (and NTFSProg) need to be installed for the perl script to execute?
I do Admin for a multi-lab environment, but our network speed (LAN as well as internet) is horrible – Imaging via DeployStudio has not been of much use as it takes FOREVER. Thus, I have been imaging via external HDD, but I’d like to not purchase Casper 7 to bury the WinClone image within the OS X DMG. If this works, I think I’ll begin using this method to push one image and have it ease the dual-imaging procedure.
Any suggestions are appreciated as well.
Exelent help once again Andrew, thak you. Have you tested windows 7 with this setup?
No, I haven’t tried this with Windows 7 yet. Soon though.
I’ve been trying, unsuccessfully, to do this for a week now. Part of my problem, I think, is that some of the settings and options have changed in Deploy Studio since this article was written, so I’m having to make “best guesses” on what to select on those new options.
I’ve had two outcomes from all of my attempts. Either I get a clean Mac deployment with no Windows expansion, or I get an infinite boot loop upon completing the Mac deployment. I’m not really sure what I am doing wrong at this point, but all of my Googling has not resulted in any new or better information than what I’ve found here.
Any thoughts on what could be wrong?
Most of the defaults in DS work just fine. I plan on creating a new tutorial soon.