You can start a line with REM to make the line a comment.įor example, here’s a script that wipes a disk and then creates a 300 MB partition for the Windows Recovery Environment: select disk 0įormat quick fs=ntfs label="Windows RE tools" To create a Diskpart script, create a text file that contains the Diskpart commands that you want to run, with one command per line, and no empty lines. Scripting these tasks is useful if you deploy Windows by using unattended Setup or the Sysprep tool, which do not support creating volumes other than the boot volume. Use Diskpart /s to run scripts that automate disk-related tasks, such as creating volumes or converting disks to dynamic disks. Applies To: Windows Vista, Windows Server 2008, Windows 7, Windows 8.1, Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2012, Windows 8
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |