Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

Setting Guest Customization Section Fails in 5.5

$
0
0

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!


Viewing all articles
Browse latest Browse all 13334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>