Using "Diskpart" in WinPE for install fresh (virtual) system
- Details
- Created on Thursday, 18 September 2008 00:00
- Last Updated on Wednesday, 05 February 2014 07:19
- Written by Daniel Paessens
- Hits: 1509
Currently am I busy to automate my installations of Virtual systems, starting from WinPE CD or ISO image.
The first thing is of course to configure the disk as I want.
Currently am I using Diskpart to do so. Together with a scirpt.
For a start, have I create a Directory on my WinPE CD in which I store my stuff.
My script file is as follow:
select disk 0
clean
create par primary
select par 1
act
assign letter=C
exit
For simplifying, have I create as well a batch file for launching this. Called DP_Diskpart.cmd
Hereby the contents of this:
@echo off
diskpart /S X:\DP\Diskpart.txt
Then I can start my default installation of a fresh operating system.
;-)
The first thing is of course to configure the disk as I want.
Currently am I using Diskpart to do so. Together with a scirpt.
For a start, have I create a Directory on my WinPE CD in which I store my stuff.
My script file is as follow:
select disk 0
clean
create par primary
select par 1
act
assign letter=C
exit
For simplifying, have I create as well a batch file for launching this. Called DP_Diskpart.cmd
Hereby the contents of this:
@echo off
diskpart /S X:\DP\Diskpart.txt
Then I can start my default installation of a fresh operating system.
;-)