Open ChrisKibble opened 2 years ago
I think we need to look at how we are formatting the VHDs. We should streamline the creation and formatting with pipes. Then I think my track of not assigning a drive letter will work and stop the dialogs.
New-VHD -Path $NewVHD -SizeBytes 50gb -Dynamic | Mount-VHD -Passthru | Initialize-Disk -PassThru | New-Partition -UseMaximumSize | Format-Volume -FileSystem NTFS -Confirm:$false -Force
Hides dialog boxes that popup when formatting VHD files in Windows. @adamgell had some thoughts on this one and is going to work on something when he has a bit of time.