Partition Format Local Disk
Created: 28 Feb 2013 | Updated: 01 Mar 2013
REM Partition Format Local Disk
REM Create diskpart script file
echo select disk 0 > %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
echo clean >> %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
echo create partition primary align=64 >> %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
echo select partition 1 >> %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
echo active >> %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
echo assign letter=C >> %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
echo format fs=ntfs quick override >> %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
REM Execute diskpart command
diskpart /s %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
REM Delete diskpart script file
del %ALTIRIS_SHARE%\temp\diskpart%ID%.txt
The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.