зеркало из https://github.com/microsoft/MSLab.git
fix for multiple VHD patch (was patching only one before)
This commit is contained in:
Родитель
4b4dcf66ef
Коммит
bc0bbdce7d
|
@ -81,9 +81,9 @@ If (-not $isAdmin) {
|
|||
#endregion
|
||||
|
||||
# region mount and patch VHD
|
||||
foreach ($VHD in $VHDs) {
|
||||
WriteInfoHighlighted "Patching VHD $($VHD.Filename)"
|
||||
$Mount=Mount-VHD $Vhd.FileName -Passthru
|
||||
foreach ($FileName in $VHDs.FileNames) {
|
||||
WriteInfoHighlighted "Patching VHD $FileName"
|
||||
$Mount=Mount-VHD $FileName -Passthru
|
||||
#Grab letter
|
||||
$DriveLetter=(Get-Disk -Number $Mount.Number |Get-Partition | Where-Object Driveletter).DriveLetter
|
||||
#Patch
|
||||
|
|
Загрузка…
Ссылка в новой задаче