How to create a vhdx file with Powershell command line

  • vor 6 Jahren
Tutorial for create a virtual hard drive with Powershell

Helpful links
-

Helpful commands
- New-VHD -Path e:\disks\usb16gbgpt.vhdx -Dynamic -SizeBytes 16GB |
- Mount-VHD -Passthru |
- Initialize-Disk -PassThru -PartitionStyle GPT |
- New-Partition -DriveLetter G -UseMaximumSize |
- Format-Volume -FileSystem NTFS -NewFileSystemLabel USB16GBGPT -Confirm:$false –Force

If you like this tutorial, then click "Like"