-server parameter was missing for the wait-task function

This commit is contained in:
equelin
2016-11-14 17:39:32 +01:00
parent 2a96855d03
commit 758b80f6b8

View File

@@ -313,7 +313,7 @@ function Set-VMCPSettings {
# Wait for the reconfiguration task to finish to show the result
If ($Task) {
$TaskID = "Task-" + $($Task.Value)
Get-Task -Id $TaskID | Wait-Task | Out-Null
Get-Task -Id $TaskID -Server $Server | Wait-Task | Out-Null
Get-VMCPSettings -Cluster $CL -Server $Server
}
}