/build/static/layout/Breadcrumb_cap_w.png

DiskPart Script after Imaging?

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
clean
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
active
assign letter=E
create partition Primary size=474059
select partition 3
format fs=ntfs quick
active
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
exit



select volume 1
remove letter=E
select volume 3
remove letter=D
select volume 0
assign letter=D
exit

0 Comments   [ + ] Show comments

Answers (1)

Posted by: Capt.Morgan 13 years ago
Orange Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ