Is it possible to run a Diskpart script immediately after the imaging has run?

The reason I ask is due to a recent issue I had when a HDD dies on a e6410 w/ OnReader. I created a script to move the CD Drive to F: then create the needed partitions.

I want to then run a script after the imaging has completed the removes the Recovery Drive Letter and the OnReader drive letter and then move the CD Drive back to D. Currently i have to do this manually but I want to automate it.

So does anyone know if it is possible.

Here is my two scripts.

select volume 0
assign letter=F
select disk 0
create partition primary id=DE size=78
select partition 1
format fs=fat quick
create partition Primary size=750
select partition 2
format fs=ntfs quick
assign letter=E
create partition Primary size=474059
select partition 3
format fs=ntfs quick
assign letter=C
create partition extended size=2051
select partition 0
create partition logical size=2050
select partition 4
format fs=ntfs quick
assign letter=D

select volume 1
remove letter=E
select volume 3
remove letter=D
select volume 0
assign letter=D
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


I was able fix this.

Created a Postinstallation Task Detail

K2000 Boot Environment (Windows)

DiskPart.exe /s Clean.Drive.Letters.txt

and put the above script into the Clean.Drive.Letters.txt and uploaded.
Answered 02/07/2011 by: Capt.Morgan
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity