I'm trying to write a script to create and format a partition in Windows Server 2008R2.
disk 1 is selected, I need to format it, only if it is not formatted already. This is what I have now:
diskpart /s script.txt
select disk 1 clean create partition primary format fs=ntfs unit=65536 quick active assign letter=D