Definition of comments customization Section fails in 5.5

Hello

Since migrating to vCloud 5.5 the following script fails who worked in point 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:

Exception by calling 'UpdateServerData' with '0' or the arguments: "Bad request - Unexpected Exception of JAXB -

HVAC-complex - type. 2.4.a: invalid content were found starting with the element "AdminAutoLogonEnabled". One of

' ' {"http://www.vmware.com/vcloud/v1.5": link, WC [# other:] "http://www.vmware.com/vcloud/v1.5"] "}' is expected."

Online: 10 char: 1

+ $GuestCustomization.UpdateServerData)

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo: NotSpecified: (:)) [], MethodInvocationException)

+ FullyQualifiedErrorId: CloudException

Any ideas?

Thank you!

Please can you try to tell PowerCLI to use 5.1 API by using the following code in your script before you run the cmdlet:

[VMware.VimAutomation.Cloud.Views.CloudClient]:ApiVersionRestriction.ForceCompatibility ("5.1")

Let me know if it helps.

Tags: VMware

Similar Questions

  • Remove the comments customization profile applied

    Hi all

    Is there a way to delete comments customization applied to a power off vm with Set - VM

    example: Set-VM - $vmname OSCustomizationSpec VM - $vmname - confirm: $false - RunAsync

    Really appreciate your help.

    If you have not yet powered on virtual machine, you may be lucky.

    The OSGuestCustomization adds a line to the VM's VMX file. This line looks like this

    tools.deployPkg.fileName = "imc7200.tmp".

    You cannot delete a VMX file entries as far as I know, but you can change the value of an entry.

    What follows will do just that for the entrance of the customization.

    $vmName = "TestVM"
    $vm = Get-VM -Name $vmName Get-AdvancedSetting -Entity $vm | where {$_.Name -eq "tools.deployPkg.fileName"} | Set-AdvancedSetting -Value "" -Confirm:$false
    

    Try to run this script, copy/clone the virtual machine in order to have a backup, then turn on the virtual computer.

  • Win2k8 R2 comments customization

    Hello

    Comments customization Win2k8 R2 is supported on vCenter 2.5 (build 174768)? We have a model, but the host name of the guest operating system is not updated to match the name of the virtual machine.

    Thanks in advance!

    Guest operating system support for Windows 2008 R2 customization was added in VMware VirtualCenter 2.5 update 6 (Build 341479):

    http://www.VMware.com/support/VI3/doc/vi3_vc25u6_rel_notes.html

  • Windows Server 2003 R2 - comments customization "customization resources weren't on the Windows Server.

    WARNING: I am a NOOB.  I am trying to create a model of 2003 R2 can I deploy starting and use comments customization to run sysprep.  I downloaded sysprep and tried following the instructions that I found.
    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1005593

    "If you have vCenter Server installed on another operating system Windows, < directory_path > is%ALLUSERSPROFILE%\Application Data\VMware\VMware VirtualCenter\Sysprep\, which usually results in C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\Sysprep\ default."

    I do not have the 'VMware VirtualCenter' directory on my machine, it means that I don't have something installed on the VM?

    I have:
    %ALLUSERSPROFILE%\Application Data\VMware\Compatability

    %ALLUSERSPROFILE%\Application Data\VMware\VMware tools

    I tried manually create VMware VirtualCenter\Sysprep\svr2003 and copy all the files to sysprep in there, but who hasn't toured.

    I'll keep hunting around for the correct instructions, but if anyone can help me I would be grateful.

    We use

    vSphere Client 4.1.0

    VCetner VMware Server 4.1.0

    Thanks in advance

    What is the host of your vCenter Server server operating system?

  • Customize RHEL6 fails

    I can't customize the IP address through vRA RHEL6 as follows:

    • Error message

    Request failed: Machine vra58: CustomizeVM: [CustomizeVM_Task] - fault. CustomizationPending.summary.

    • Parameters of the management plan

    I can customize the address IP of RHEL6 however vCenter without vRA.

    Is there anyone who knows advice to solve this problem?

    I'm sorry. I solved this problem by myself. Preparing to customize the OS including spec comments and customization officer was incorrect.

  • CentOS 7 comments customization with vCD 5.5.2 does not

    It seems that CentOS 7 is not taken in charge and invited the customization does not work with 5.5.2/vCenter 5.5u2 of 5.5u2/esxi. Anyone found a solution for this? < Br > I am currently using the provided operating system open-vm-tools + the plugin this Ko deployPkg http://kb.vmware.com/kb/2075048 . I used VMware provided tools and had the same results as well. IP address is not configured host name is not configured the looks like the customization comments script works but failed due to networking are declining. Search the logs for 'Customize guest' file does not display errors that can be used. < br > insight is appreciated. Thanks, Blake

    Yes, we now use this hack and work well with straight vCD and vSphere. https://lonesysadmin.NET/2015/01/06/CentOS-7-refusing-VMware-vSphere-guest-OS-customizations/

  • Problem view 4.5 comments customization (domain)

    Hello

    I just upgraded my lab with view 4.5 and starting through some tests. I have a problem that I can not see any domain in the domain of the page of customization of comments (see photo).

    My parent office has been joined to the domain.

    Thanks in advance

    Concerning

    Davide

    Hi Davide.

    First of all, you need to add a user View Composer vCenter server settings page this drop down is filled. Instructions on this operation is located on page 14 of the guide in the section titled creating a user account for View Composer:

    http://www.VMware.com/PDF/view45_admin_guide.PDF

    -Mike

  • Definitions of virus & spyware update failed error code: 0 x 80240022

    I use windows vista and everytime I try to update, it says failed and that I could not be connected to the internet, but I am connected.

    dooooooooo,

    Consult the below Microsoft article and try the steps mentioned and check if it works.

    How to troubleshoot Windows Defender definition update

    http://support.Microsoft.com/kb/918355/en-us>

  • Dot1x comments Vlan / Auth Fail Vlan editions

    Hi all

    Configure dot1x on our access layer switch ports and I have a few problems with devices that fail authentication.  This is the current configuration on the way to the switch:

    switchport mode access

    switchport voice vlan 38

    dot1x mac-auth-bypass

    dot1x EAP authenticator

    self control-port dot1x

    multi-domain host-mode dot1x

    dot1x timeout server-timeout 10

    Server of reauth-dot1x timeout period

    dot1x tx-time 10

    dot1x timeout supp-timeout 3

    dot1x max - req 3

    dot1x max-reauth-req 3

    dot1x re-authentication

    criticism of dot1x

    critical recovery dot1x action reset

    dot1x auth failure vlan 7

    dot1x comments - vlan 7

    dot1x critical vlan 36

    spanning tree portfast

    spanning tree enable bpduguard

    When a non-employee connects they go through the authentication process and eventually fail dot1x and mab and placed in the vlan designated guest 7.  If you're doing a "show int gx / x status" on this port, switch-it shows the connected and to this vlan 7.  If you're doing a "show dot1x int gx / x details" it also shows the port as authorized (by Guest-Vlan) and politics of vlan is 7.  The problem is the user never gets a valid ip address - they receive only a 169.x.x.x.  Anyone has experience with this type of question or have any recommendations?

    Thank you

    Brian

    -First of all Eteinte, your switch orders tell me you are using old software on your switch, you must pass it first of all, there was a lot of correction of a bug and improvements to dot1x/mab in recent versions

    -Your problem is probably that the client dhcp of your comments is delay until you are finished with dot1x and mab, susally tx-period to a lower number of adjustment could help the time it takes before joining the vlan comments, but could also have an impact on your computers running dot1x, you should try some different values. Also, using Windows XP SP3 or Windows 7, also helps on your machines to dot1x, and finally using supplicant AnyConnect NAM he will operate properly without having any problems when setting the timers dot1x on your switch.

    -With the new software I go with default timers, perhaps change tx-5 second period and then use the "order mab dot1x authentication" and "authentication priority mab dot1x", also having your vlan comments like your vlan by default, will be generally also solve the problem of the guests have to do a new once-popular dhcp reqeust, however you can run into problems with stuff you wan't to use mab on.

  • Problems of cloning.  "Comments customization" option is not available.

    I'm cloning a Windows 2003 Client vSpherer server.  vCenter Server runs under 2008 R2 and we run ESX 4.1.  When I clone the machine I have access the "Customize the comments" page of the wizard, but everything is gray and the chosen option is "don't customize.  Why can I not select the option "Customize using the Customization Wizard".  I've attached a screenshot of what I see.

    Thanks in advance for your help on this point,

    Terry

    You have all the files appropriate sysprep installed in the right folders on your host OS vCenter?

    http://KB.VMware.com/kb/1005593

  • DR-IP-Customizer customization specification fails on the stimulus Plan

    I have problems with the customization-ip-dr tool provided with MRS. The use of SRM 4.0 and vCenter Server 4.0, the command generate generates enough empty a CSV file with only shadow vm names, vm and a 0 card ID by vm, while each VM has really several adapters and complex information that needs to be filled in the rest of the table.

    VM ID, VM name, ID card, MAC address, domain DNS, Net BIOS, WINS primary, secondary WINS, IP address, subnet, Gateway (s), or the servers DNS, DNS suffixes mask

    shadow-vm-1111, vm-1111, 0,

    shadow-vm-2222, vm-2222, 0,

    shadow-vm-3333, vm-3333, 0,

    shadow-vm-4444, vm-4444, 0,

    I then fill the table and run the command create/recreate, that succeedes in creating the specifications of customization, but stimulus package always runs and fails. My populated csv looks more like:

    VM ID, VM name, ID card, MAC address, domain DNS, Net BIOS, WINS primary, secondary WINS, IP address, subnet, Gateway (s), or the servers DNS, DNS suffixes mask

    shadow-vm-1111, vm-1111, 0,

    shadow-vm-1111, vm-1111, 1, 00:50:56:38:08:11, 10.10.10.10,

    shadow-vm-1111, vm-1111, 2, 00:50:56:13:08:11, 11.11.11.11, 255.255.255.0, 11.11.11.253,

    ..... (continues for all virtual machines of 4 shadow)

    Execution fails on step 5. "Recover Normal priority VMs..." with the error: cannot complete customization.

    I'm not running a test of a race, but am running of the race, because I use SRDF adapter EMC who needs additional licenses / installs the plugin of the VSI and TimeFinder devices to perform the test.

    So is there something wrong with my formatting or information? The tool should not generate spit a fuller csv? I have never seen an example with multiple cards, it doesn't?

    Thank you!

    And if you perform a new analysis of the host bus adapters, VMs receive no State orphand or inaccessible?

  • Location of the files to answer comments customization specification in VirtualCenter?

    Is it possible that I can start the wizard specification of customization of comments on its own, within the VI Client?

    I want to change some of the specifications recorded, without having to start a clone.

    Or are these files answer somewhere on the VirtualCenter server, which can be modified.

    I read somewhere that they were xml files? But could not find a relevant location overlooking my VC server.

    (Comments of personalization is the sysprep Wizard that appears for Windows based on Virtual Machine for model/clone creation)

    Thank you

    MacG

    Yes there is the VIC, click on and then change "customization specifications."

  • KB915597 (definition 1.95.861.0) failed status is important. 30/11/2010

    More updates not update after KB915597 (definition 1.95.1996.0) are available for the update.

    I now recall a few weeks trying to download windows security scanner live onecare and to halfway to the frozen screen download and ihad to remove my laptop battery, reinstall and at startup, I selected a restore point, ran my mcafee virus scanner and when nothing was found I thought that everything was ok. I guess that now it may be coming back to haunt me.

    Question:-can I do a clean install of the recovery disks that I did when I bought the computer and this will remove all nasties lurking on my computer. If so do you have any other advice for a successful installation.

    Thank you for all the advice offered.

    KB2423089, KB2436673, KB2416400 & KB2296199 all are listed in installed updates?  [Yes/No]

    Can update you Defender manually?  [Yes/No]

    V1.95.1996.0 defs became available on 17 Dec-10 at 05:36 UTC. There were five 5 definitions updated since then. As of this post, the current set of Defs is v1.95.2086.0 which became available at 21:41 UTC on 18 Dec-10. (I write this response at 00:06 UTC on 19 Dec-10.)

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Store permanent values of comments customization as a resource?

    Could someone explain to me if it is possible and if so, how, to store responses to a sysprep as a resource permanently in vCO? By importing the values located in vCenter?

    See an example here need help to start with the cloning by specification of customization

    Joerg

  • Display resolution of comments from Linux fails in fullscreen

    (Apologies to the Group: I feel that this topic was covered in a previous thread, but I searched a bit and it not found.)

    I have a lot of iMac 21.5-inch (1920 x 1080). It is currently running OS X 10.11.2 El Capitan. For some reason, the new 8.1 VMware cannot display jobs Linux properly in mode full-screen. He remains in initial mode low resolution, set scaling to fit the screen. It is never used to occur in earlier versions of Mac OS X (host) and previous versions of VMware Fusion. Which adds to the frustration, is that Linux distributions have not 1920 x 1080 is available as a pre-installed in display settings resolution.

    She can relate to VMware Tools. Some distributions have open-vm-tools pre-installed. If I try to install the VMware tools that come with VMware Fusion 8.1, I get a warning that open-vm-tools is preinstalled and should I use open-vm-tools.

    -> How people are working around the issue?

    You can try this, in the Terminal of the client:

    sudo apt - get update


    sudo apt - get install open-vm-Tools-Office

    ... to restart the guest and see if it works now.

    Here is a KB article:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2073803

    ... and another article here:

    Open-VM-Tools: VMware Tools future for Linux - VMware Articles

    (IIRC, composing the Office Open-VM-Tools is not always installed by default...)

Maybe you are looking for

  • Account restriction - Contacts App

    Hello everyone, I have an iPhone 6 + and I'm trying to block it so my son can not add contacts to his phone.  I went to and set restrictions on the phone to prevent changes on account settings since he says includes contacts, but I can still add.  Am

  • Implementation of WPA with Intel PRO/2100 3B in Satellite M30

    Hello! Anyone know if it is possible to secure my connection Wireless using WPA with the Intel 2100 series card in my M30 (and how)? I have wlan adapt version 1.1.6 driver but I think that the drivers must be updated to version > 1.2.0 as mentioned o

  • Failed to start remote access service

    Hello I get a vps and I install ca and iis and the remote access service I allow it as a vpn server When I try to run the remote access service there gives me an error The Routing and remote access is dependent on the Remote Access Connection Manager

  • How to isolate svchost memory problem use which is BOUNCING - Windows 7 SP1,.

    I have a seemingly common problem with svchost executing a sub-process that uses too much memory (about 1 GB). I read some of the tips advice in other places, and MS know using Process Explorer and disabling of processes such as Windows Update, even

  • Format of video MMS blackBerry Smartphones

    Hey all. I have the BB 4.5.0.55 software on my Curve 8320 from Tmobile. I can record videos and watch them on my BB. However, when I send them to my wife who also has the same phone that she cannot open the videos. They are recorded as *.3gp files. W