Hi,
Since migrating to vCloud 5.5 the following script fails which worked in 5.1:
$CIVMs = get-CIvApp $CIvAppName | get-civm Foreach ($vm in $CIVMs) { write-host "Customizing" $vm.name $GuestCustomization = $vm.ExtensionData.GetGuestCustomizationSection() $GuestCustomization.Enabled = $true $GuestCustomization.ChangeSid = $false $GuestCustomization.ComputerName = $vm.name $GuestCustomization.ResetPasswordRequired = $false $GuestCustomization.AdminPasswordEnabled = $false $GuestCustomization.UpdateServerData() }
The error is the following:
Exception calling "UpdateServerData" with "0" argument(s): "Bad request - Unexpected JAXB Exception -
cvc-complex-type.2.4.a: Invalid content was found starting with element 'AdminAutoLogonEnabled'. One of
'{"http://www.vmware.com/vcloud/v1.5":Link, WC[##other:"http://www.vmware.com/vcloud/v1.5"]}' is expected."
At line:10 char:1
+ $GuestCustomization.UpdateServerData()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : CloudException
Any ideas?
Thanks!