File size: 554 Bytes
4176b74 a1061d2 4176b74 a1061d2 b77a18f 4176b74 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
param(
[string] $Name
)
Import-Module 'E:/Virtual Machines/mod.psm1' -Function Repair-VirtualMachine
#=====================================================================================================
New-Item `
-Path "$HyperV\$Name" `
-ItemType Directory `
-ErrorAction SilentlyContinue `
-Verbose
New-VHD `
-Path "$HyperV\$Name\Hard Drive.vhdx" `
-SizeBytes 150GB `
-Dynamic
Repair-VirtualMachine -Name $Name
#===================================================================================================== |