Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.
Endpoint Management Community Blog

Partition Format Local Disk

Created: 28 Feb 2013 • Updated: 01 Mar 2013
varaprasad_ravuri's picture
+1 1 Vote
Login to vote
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