diff --git a/scripts/Update-OvfConfiguration.ps1 b/scripts/Update-OvfConfiguration.ps1 index d080c68..4bef5ae 100644 --- a/scripts/Update-OvfConfiguration.ps1 +++ b/scripts/Update-OvfConfiguration.ps1 @@ -99,7 +99,7 @@ ForEach ($Disk in $OVFConfig.DynamicDisks) { $XMLDiskItem.SelectSingleNode('rasd:InstanceID', $NS).InnerText = $InstanceID [void]$XML.SelectSingleNode('//ns:VirtualHardwareSection', $NS).InsertAfter( $XMLDiskItem, - $XML.SelectSingleNode("//ns:VirtualHardwareSection/ns:Item/rasd:InstanceID[.='$($HighestInstanceID)'", $NS).ParentNode + $XML.SelectSingleNode("//ns:VirtualHardwareSection/ns:Item/rasd:InstanceID[.='$($HighestInstanceID)']", $NS).ParentNode ) $OVFConfig.PropertyCategories[0].ProductProperties += @{