ChrisKibble / Lably

The Lably module assists IT professionals with quickly creating a home lab without having to re-create common environments over and over again.
GNU General Public License v3.0
5 stars 3 forks source link

Hide Formatting/Mounting Dialogs When Working with VHDs #35

Open ChrisKibble opened 2 years ago

ChrisKibble commented 2 years ago

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.

adamgell commented 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