Login to participate
Endpoint Management & Virtualization BlogsRSS

Using RapiDeploy to Re-Image a Machine that Already has Vista

Screenbert's picture

When trying to use RapiDeploy with WINPE you may receive an error when trying to deploy an image on a machine that already has Windows Vista loaded on it. Here's a quick tip to help you avoid the error.

Before trying to run Rdeployw.exe just follow these steps to delete the partition and you're ready to go!

Diskpart.exe

  1. List disk
  2. Select disk 0
  3. List partition
  4. Select partition 1
  5. Delete partition override
George Wagner's picture

SWEET

Our boxes come preloaded with Vista from the manufacturer and this has been our problem for a long time. I didn't know you could use diskpart to make it faster to delete the partitions!!! THANK YOU! Any idea how we could make the image job do diskpart for you before it tries to image? I imagine something is possible to automate it.

-Geo

Don't forget to mark the solution to your forum post if it has been answered!

Jay.Downing's picture

Automating DiskPart in Altiris

We have added a script at the begining of our imaging creation process that runs DiskPart to create a 20 Gig partition and then format it with NTFS. In the script we have Diskpart making a call to a text file for its instructions. I am sure you could take what you need from this process and plug it into yours to just delete the partition.

**Note - We have created a DiskPart folder in the Images folder on the eXpress share and placed Diskpart.exe and Diskpart.txt in that folder.

Here is the script we run from Altiris:

REM Create 20 Gig NTFS partition
".\Images\DiskPart\diskpart.exe" /s .\Images\DiskPart\DiskPart.txt
echo y | .\Images\DiskPart\format.com c: /fs:NTFS /q

And here is the Diskpart.txt file we have created:

select disk 0
select partition 1
delete partition
select disk 0
clean all
create partition primary size=20000
select partition 1
active
assign letter=c
exit

**Note - I do not have "delete partition override" but rather just "delete partition" as I have not tested it yet. (just saw this post from Screenbert this morning)

Screenbert's picture

Greate script - Part Override

Great script Jay!

The "delete partition override" was required on our machines. Not sure why, but just plain "delete partition" always gave an error.

Screenbert

Screenbert