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