UpgradeMethods.ps1
# # Citrix IPS upgrade PVS job support # function Format-UpgradeData([string]$Platform, [hashtable]$Parameters, [bool]$Verbose=$False) { $upgradeData = Format-JobData -Platform $Platform -Parameters $Parameters -Verbose $Verbose Set-SmbInputLocation -Parameters $Parameters -JobData $upgradeData -Verbose $Verbose $upgradeData['inputImageFilename'] = Get-SmbParameter -Parameters $Parameters -SmbConfigNode $SmbSectionName -ParameterName 'SmbDiskName' -Verbose $Verbose $upgradeData['inputImageFormat'] = Get-SmbParameter -Parameters $Parameters -SmbConfigNode $SmbSectionName -ParameterName 'SmbDiskFormat' -Verbose $Verbose $upgradeData['outputImageFilename'] = Get-SmbParameter -Parameters $Parameters -SmbConfigNode $SmbSectionName -ParameterName 'SmbOutputDiskName' -Verbose $Verbose $upgradeData['outputSizeMb'] = Get-JobParameter -ParameterName "OutputSizeMb" -Verbose $Verbose $upgradeData['outputSizeMb'] = @{ installPvs = Get-JobParameter -ParameterName "InstallPvs" -Verbose $Verbose } return $upgradeData } |