SCCM script help

blue957400

Member
Anybody here use Windows PE (System Center 2012 R2)? Trying to create a script in windows PE to reformat but I can only get it to run when I change directory to the root on the bootable USB (D:/) since the drive comes up as (X:/) by default. I'm not sure where to place the script so that it loads on boot. Would adding a CD ../.. to the start of this script work? This is the simple command I have to manually do in diskpart but after doing multiple laptops in a row it gets annoying. Any help is appreciated.

Diskpart
sel disk 0
clean
set partition primary
active
assign
format fs=ntfs quick
exit
 
Top