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