RSS

Tag Archives: diskpart

Scripting new storage using diskpart

To quickly provision new disks in your 2008R2 servers, you can use the following script and using “diskpart /s scriptname.txt” to provision new disks in 2008R2 servers. Of course you should always VERIFY the disk number and also modify it according to your needs. The script will online, initialize with MBR, create a single primary partition, assign drive letter and quick format the disk.

SELECT DISK 1
ATTRIBUTES DISK CLEAR READONLY
ONLINE DISK
CONVERT MBR
CREA PART PRIM
ASSIGN LETTER=D
FORMAT LABEL=”DataD” QUICK

 

Advertisements
 
2 Comments

Posted by on May 24, 2012 in Scripts, Windows, Windows CMD

 

Tags: