Set-VM the vCenter Server fails to decrypt the passwords stored in the customization specification error

This error in executing the PowerCLI code below

Environment

5.5 b

Using PowerCLI 5.5

Do not use a custom certificate

(1) tried to use passwords in clear text in the script (not my favorite)

(2) tried to retype the password in the customization specifications (join the domain and local administrator options)

(3) tried to use Get-Credential as stored creds

(4) I don't know how to put the password in the XML file in clear text (not my favorite) - looking at it now.

#Load PowerCLI a snap

function LoadSnapin {}
Param ($PSSnapinName)
If (!) () Get-PSSnapin. where {$_.} Name - eq $PSSnapinName})) {}
Add-pssnapin-name $PSSnapinName
}
}
LoadSnapin - PSSnapinName 'VMware.VimAutomation.Core '.


#Create VM
$ParentVMName = "Parent2012r2VM".
$vCenterHostName = 'vCenter.
$vCenterUserName = "domain\user".
$vCenterUserPassword = "Password"
SE connect-VIServer-Server "vCenter' - User $vCenterUserName - password $vCenterUserPassword

#$cred = get-Credential
#connect-viserver-Server "vCenter" - Credential

$cloneName = 'Server1 '.
$sourceVM = get - VM $ParentVMName | Get-View
$cloneFolder = $sourceVM.parent
$cloneSpec = new-object Vmware.Vim.VirtualMachineCloneSpec
$cloneSpec.Snapshot = $sourceVM.Snapshot.CurrentSnapshot
$cloneSpec.Location = new-object Vmware.Vim.VirtualMachineRelocateSpec
$cloneSpec.Location.DiskMoveType = [Vmware.Vim.VirtualMachineRelocateDiskMoveOptions]: createNewChildDiskBacking
$sourceVM.CloneVM_Task ($cloneFolder, $cloneName, $cloneSpec)


#Update temporary spec
[string] $Domain = "Domain".
[string] $DomainUserName = "user@domain".
[string] $DomainPassword = "password"
$Spec = get-OSCustomizationSpec "CustomSpec1" | New-OSCustomizationSpec-name "tmp01" - non-permanent Type | Game-OSCustomizationSpec-domain $Domain - DomainUsername $DomainUsername - DomainPassword $DomainPassword
$Spec = get-OSCustomizationNicMapping-Spec $Spec | Game-OSCustomizationNicMapping - IPmode UseStaticIP - IPAddress 'x.x.x.x' - SubnetMask - DefaultGateway x.x.x.x - x.x.x.x DNS 'x.x.x.x', 'x.x.x.x '.
$Spec = get-OSCustomizationSpec "tmp01".


#Apply temporary spec
$VM = get - VM "Server1."
Get - VM $VM | Get-NetworkAdapter | Together-NetworkAdapter - PortGroup "PortGroup1" - confirm: $false | out-null
#Errors on this line
Get - VM $VM | Set-VM - OSCustomizationSpec $Spec - confirm: $false | Start-vm

Disconnect-VIServer-Server "vCenter" - confirm: $false | out-null

I gave up trying to clone an existing config a spec just dynamically created in memory, and applied.  It was a LOT easier and had no password problems.

Tags: VMware

Similar Questions

  • BlackBerry Storm 9530 smartphones. Had "the connector-specific error" when synchronize with outlook.

    Hello world.

    I just updated my storm 9530 with the ver.5.0 and has since got this version I'm not able to sync with my outlook 2003. Always got this message in french "Connector specific error" which means "the connector-specific error. Anyone ever had this problem. If so, how can I solve this problem. Thank you. Michel... Sorry for my English...

    Hi and welcome to the Forums!

    I think that the translation may be different... see if this KB applies to what you are requiring:

    • KB15294 "Connector specific error" when syncing with BlackBerry Desktop Software

    See you soon!

  • I have windows 7 when I right click on my desktop and open the Customize says error unspesified

    I have windows 7 when I right click on my desktop and open the Customize says error unspesified

    Hi Marion,

    Thanks for posting your question in the Microsoft Community.

    I imagine the inconvenience that you are experiencing. I will certainly help the question of fixing.

    To help you suggest several steps to solve the problem, I would appreciate if you could answer the following questions:

     

    1 have you ever done any recent hardware or exchange of software on your computer before the show?

    2. What is the error message that is accurate or complete?

    Please follow the methods and mark the question below:

    Method 1:

    You need to perform a clean boot to prevent any third party conflicting application from interfering with your computer.

    To put the computer in a clean boot state, you must follow the steps in the article mentioned below and check with the question.

     

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: You must follow step 3 of the article mentioned above to recover your computer to a Normal startup after you complete all the steps.

    Method 2:

     

    Scan your computer by using the Microsoft Safety Scanner by clicking Download now to check if there is no virus infected:

    http://www.microsoftsafetyscanner.com/

     

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

     

     

    Method 3:

     

     

    I suggest you to perform SFC (System File Checker) analyze and check if TI the problem persists. To do this, please see the following article.

    The SFC/SCANNOW command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions and troubleshoots missing or damaged system files in Windows.

    For more information how to make SFC / scan, please follow this link:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7:

    http://support.Microsoft.com/kb/929833

     

     

    Method 4:

     

    Try to create a new user account and see if the problem still occurs because the user account might have corrupted.

    Create a user account:

    http://Windows.Microsoft.com/en-in/Windows7/create-a-user-account

    If the new user account works fine without any problem, then follow the link below to fix a corrupted user profile and transfer your data from the old account to the new account files.

    The difficulty of a user profile is corrupted:

    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

     

     

     

     

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

     

  • A domain on the server vCenter Server installation causes vCenter Server fails to start

    Hi guru,.

    Well I tried for a while, to get my vCenter Server to work with my newly created domain name and at least i did not have much luck. It seems that every time that

    I have create a new domain and restart the system. For the VirtualCenter Server service fails to start on reboot. I checked my odbc connection and test works very well.

    I am able to log in microsoft management studio without problem. But still, the service does not start I understand I can meet here, it's probably a

    with my database permissions issue.  However I can't seem to find the answer by myself if I m hoping to hear some suggestions from all of you who help on this.

    Thanks for the replies!

    Sean

    Uh, you have not installed vCenter on the same server that is running your domain controller you have?

    ADAM and cannot run on the same machine AD.

    If it is installed on the same computer that your DC - get a new machine for VC - this configuration will never work. (minimum supported ram is 3 GB.)

    We see in the newspapers that ADAM is not from, and that's why VC fails to start as well.

    Failed to get all pages of search results: 0xa (a reference was returned by the server).

    Couldn't find OU = container of Instances.  This may indicate a problem with the LDAP permissions for the execution account VirtualCenter, or that the schema is not compatible with this version of VirtualCenter.

    Unable to run the search for the instance

  • VCenter Server fails Nexpose security because of the Open Access database analysis

    I soaked a vCenter Server 5.5 as much as possible using Nessus and Nexpose scans, but are still two risks "severe."  one is

    Database access-

    The SqlExpress server that is responsible for VMWare is protected by Word, but Nexpose (PCI and DSS) don't allow databases be exposed through unlimited web access.

    Is it possible to pass this Nexpose scan by limiting access to the database to a specific IP address, or another trick?

    You can check if you have installed SQL Server Reporting Services (SSRS) on the same server as the database engine? If you install Reporting SERVICES on the same server as the database engine, Web services will open a hole in the layer of your security. Historically, the IIS and the Web have had a large number of vulnerabilities, allowing hackers to take control of the server, thus putting of whatever it is hosted on the server at risk. You can avoid this risk do not install Reporting SERVICES on the database server. best practice always do not install this service unless it is necessary.

  • I lost a screen resolution setting in the customization settings.

    I am running Vista Home Premium.  I have a westinghouse flat screen.  Its native resolution is 1680 X 1050.  The highest resolution setting in the settings of display resolution is 1600 X 1200.  I installed spy sweeper from webroot and rebooted and lost native resolution setting.  I tried to restore to an earlier date, but it does not work.  I still have a problem.

    Who did it!  Thank you so much.

  • The drive stops at 1% with the platform-specific error 2338

    Hello

    I'm P2V a Windows 2003 server in my vCenter environment 5.1.

    Using Converter Standalone version 5.1.0

    All ports is open I firewalls, but still I get this error:

    FAILED: An error occurred during conversion:

    'Platform-specific error 2338'

    I am attaching a logfile here, so if anyone can help to understand what causes the error, I understand that :)

    When you select a host in a DRS cluster automated, it's the vCenter server who makes the decision what ESX host in the cluster to use. If it's a manual DRS or non - DRS cluster, you can select the specific host. The obvious difference of the user, is that in the latter case there is an extra drop-down box for the selection of the host.

    In fact, it's some sort of bug in user experience, because this difference in behavior is not clear. The guide mentions on 49, but we know not to be cut.

    Kind regards

    Plamen

  • Canon MG5450 cannot be set as the default printer, error 0 x 00000709, please help!

    Hello MS community.

    I'm lost, I tried several things to solve this problem, but could not succeed.
    My system is:
    Windows 7 Home Premium SP1, stable and works well with a score of 5.9
    My printer has been installed and deleted 3 times already and I tried both set up as a network printer or a USB connected. At the moment I installed it as a USB, but this will not let me install the default printer.
    First the printer is accessible and print successfully from Word, ACDSee and some other applications but is not recognized by Adobe such as Photoshop & Acrobat products and does not Excel print. I know that this error has been discussed in several other threads, but yet I could not find a solution that worked.
    I tried to repair the registry as following the instructions here about something else:

    (a) click Start.
    (b) type regedit in start search and press enter.
    (c) access the site mentioned below.

    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows

    (d) in the right column, you will find key device, change the value of your printer name.
    (e) it is for example in the format: "HP LaserJet 4250 PCL6, winspool, Ne03:

    (f) right click on the value and click Rename, replace with the name of your printer.

    When I try to change the key it doesn't let me, even if I ran regedit as an administrator. It is said:

    Cannot change the device: error writing to the new content value. I wanted to put: series of Canon MG5450 printer, winspool, draw:

    even if in the example, she said winspool, Ne03. I thought I could leave I had in default.

    i also see another key which is:

    Load REG_SZ C:\Users\-(my user name here)-\LOCALS~1\Temp\mshikra.bat

    This also I do not know what because if I go to this folder this .bat file is not present.

    I also tried this tool:

    http://support.Microsoft.com/mats/printing_problems/

    and when he said will analyze it: series of Canon MG5400 printer is not the default printer, and then I clicked on fix it and id not said, not successful.

    Now I don't know what else to do.

    The only true left to try perhaps would be to reset all the settings of the printer (the printer connects to the home network with the wifi password) may disable the wifi wireless option, if possible. Switch it off and remove all the entries of the printer and try again to install it, but then perhaps on the administrator account.

    ideas? suggestions?

    Hello

    If I understand correctly you are facing problems with the configuration of the default printer. Do not worry, I'm here to help you with this question.

    I would like to know how you're trying to it set the default printer, so that we can help you better.

    Let us try the following methods and check if it works for you.

    Method 1:

    Run the printer troubleshooter.

    Open the printer Troubleshooter:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Method 2:

    Try the steps in the Microsoft Help article and check if it works for you.

    Solve printer problems:

    http://Windows.Microsoft.com/en-us/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-7&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    Method 3:

    Turn on the Windows Firewall temporarily turned off and then try to print.

    Enable or disable the Windows Firewall:

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-off

    WARNING: Disable Antivirus\Firewall temporarily, then check the issue. Sometimes they may be in conflict. Please make sure that you enable the antivirus software\firewall after the test to keep your computer protected.

    For more information, see the following Microsoft Help article.

    http://Windows.Microsoft.com/en-us/Windows7/change-your-default-printer

    Please answer if the steps not help, so that we can better help you.

  • ODC set up the DB connection - error - Oracle OLE DB provider

    Hi all

    I have windows 7-64 bits of the system on which I am configuring ODC 10.1.3.5.1. I am trying to connect to the server of DB Oracle 11 g 64 bit installed on another machine on a network.
    Suite of software, I installed on my system
    -Oracle DB client 64-bit 11g
    -L'ODC 10.1.3.5.1
    -ODAC 64 bit for 11g


    First time when you start the ODC, he asks for the DB configuration. Here I try to configure DB using "Oralcle provider for OLE DB" connection.
    This time it gives me below error.
    Provider is no longer available. Ensure that the provider is installed correctly.

    I tired installing 32-bit ODAC also, but the error persists.

    Kind regards
    Vikrant Korde.

    Hey Vikrant,

    ODC (Capture of Document Oracle) is 32-bit application and to make it work correctly, install the 32-bit oracle client and 32-ODAC. Once this installation is correct, we are able to successfully run the ODC.

    Thank you and best regards,
    Snehal

  • Download the stand-alone host to vCenter License Server failed because the exception: vim.fault.HostConnectFault.

    Location:

    ESXi 5.5 Update 2 stand-alone host with a licnese Essentials

    vCenter Server 5.5 Update 2

    Whenever I'm going to add this host to vCenter he fails with the error: download the file < HOST IP > license to vCenter Server failed because the exception: vim.fault.HostConnectFault.

    I restarted the server vCenter, tried different credentials and looked through all the articles online that I can find online with the same question and nothing none of them suggested has worked so far.

    Thoughts?  Ideas?

    I'll leave this here in the event that it helps someone else.  I was using an administrator account on the stand-alone host in an attempt to add it via vCenter.  Once I started using the Root account on the host, I could add without problems.

  • The active alarm set in Vcenter server

    Hello

    I'm looking for a script that displays the list of active alarm set description in vcenter server. Thank you

    PFA.

    Thank you

    vmk2014

    Oops, the value has been abandoned in the copy/paste, I'm afraid.

    I corrected it in the code above, give him another chance

  • Cannot add the ESX 6.0 host to vCenter Server 6.0

    OK, I'm testing laboratory a vsan 6.0 cluster.

    I have my running 6.0.0 esx hosts and vcenter server is 6.0.0 also.

    I have the services platform on a virtual machine and vcenter on another. I was able to create a data center, then a cluster below.

    Then I went to try to add a host to my group and I get this error...

    Failed to contact the specified host (hostname\IP). The host may not be available on the network, may have a network configuration problem, or that the management on this host services may not respond.


    Per this KB: KB VMware: Add a host VMware ESXi/ESX from VMware vCenter Server fails


    I confirmed that my vcenter server and platform services server can see all esx hosts. From the vcenter server, it can ping the host esx and PuTTY can access all of them. I even installed the client and it can connect to all esx hosts. I used the netbios name, IP and FULL domain name and they all work.

    I have only a single subnet, so this isn't a problem. DNS resolution works in all areas of both sides, vcenter esx hosts and host esx to vcenter.


    I am quite puzzled.



    OK, after working with VMware on this issue, I think that I thought about it.

    All my hosts are DL360 G6 servers.

    My hosts are run the same build «VMware-ESXi-6.0.0-2494585-HP-600.9.2.38-Mar2015.iso» ESX Downloaded from HP.

    All buildings are in trial mode.

    After placing a call to VMware, they had me build some ESX VM, the services of the platform and the vcenter VM on an ESX host. We suspended because it took all day to go upward.

    Once I woke up all the parts (sql server, esx vm, server platform & vcenter) in virtualization nested, I created my data center, then Cluster then added the ESX host.

    The hosts added properly, no error. Then I remembered when I installed ESX inside a virtual machine, I am angry that the iso, I had the habit of HP does not work in my VM nested due to virtualized hardware.

    Then a fire came into my head. We will rebuild all of the physical cluster but NOT use the CV provided the iso file but use VMware provided iso file "VMware-VMvisor-Installer - 6.0.0 - 2159203.x86_64.iso".

    I did it today. I have rebuilt all hosts with the provided iso file VMware ESX...

    Spun SQL Server vCenter, service platform, all VM VM VM you need. My AD & DNS VM are on another server, so he has been upwards all the time.

    Connected to the web interface (yuck!).

    Created my data center...

    Created my Cluster...

    Add all my Cluster hosts.

    All of this worked!

    Therefore, if you encounter the same problem, I'm plan to generate your with the provided iso file VMware ESX hosts and try it. In my case, the provided HP iso file didn't work properly for me.

    I also downloaded the iso file of HP 2 other times to make sure and do a validation test and it did the same thing.

  • VMWare v6.0 to 6U1 or 6U2 Upgrade - external PSC - 1603 errors in vCenter Server

    Hi all

    I was wondering if someone met the upgrade a version 6.0 VMWare install to U1 or U2 upgrade and received a 1603 error.

    The installation runs correctly on the external PSC, but when running against the vCenter Server fails and has a 1603 error and did a restore.

    The VCSServiceManager component installation failed with error code "1603". Check the logs for more details

    I tried all the other threads suggesting to have .net installed 3.5, the ipv4 stack and database permissions but are all there.

    Any help would be greatly appreciated.

    For those who have encountered this problem in the future, was the way I solved this:

    Question has been connected to the VMWare SysLog Collector Service. There is a problem with the new syslogcollection MSI being able to upgrade, uninstall or reinstall on the legacy.

    Best way to solve this problem is to remove the reference to the old service of library of Windows Setup syslog collector. The way I did it was to use the Windows Installer CleanUp legacy.

    Post this, remove installation held as scheduled and transmitted "installation VCSServiceManager.

    If you come across this issue - you can test it by trying to run the msi syslogcollector contained in the directory of files binary vCenter.

  • Requirements of ports for vCenter Server 5.1 - SysLog Collector

    Hi all

    Has anyone installed a SysLog collector?

    My book of vmware by Lowe mentions little on the ports for it.

    During the installation of the server, he gave me a list of ports.

    I accepted all the flaws, except that I changed the ports http to 81 and 8081 because IIS is installed (vmware docs say to use one port other than 80, if IIS is already installed)

    Now, during the installation of the SysLog collector it asks which http port I use.

    The vmware docs nothing mentioned on the syslog http port is my book. The vmware for TCP docs show that.

    ESXi Syslog Collector8001TCPESXivCenter Server

    Network syslog server

    Just use port 81 as the http port I have set up for vcenter server? The web interface won't connect through this port? There will be a conflict?

    I used netstat and port 82 is not used. Should I use?

    The other settings works ok?

    There is no firewall involved; vCenter server and the VMs system will reside on the same site

    Thanks in advance

    port 81, that is according to the third screenshot! 8081 is for Tomcat!

  • VCenter Server 5.1 SSL certificate update - error

    Hi all

    We set up a new Windows 2008 R2 server as a vCenter Server 5.1

    Now, I try to install the new certificates for all parts of vCenter (server, inventory, web client service,...) with the Windows certification authority.

    I'm stuck at the update server certificate SSL vCenter with the 'Certificate SSL Automation Tool'.

    This is part 5. in this guide (5. the cmd screen shot):

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2041600 #updatestepsplanner

    All credentials are correct, but I still get the same error (vc-update - ssl.log):

    [26.04.2013 - 10:42:54, 99]: copy the new certificates and keys 'C:\ProgramData\VMware\VMware VirtualCenter\SSL. '... »
    [26.04.2013 - 10:42:55: 00]: creating the PKCS certificate file...
    Could not reload vCenter SSL certificates
    [26.04.2013 - 10:42:56: 22]: ""cannot reload the server vCenter SSL certificates. " The certificate could not be unique. » »
    [26.04.2013 - 10:42:56, 24]: new certificates and keys deleting...
    [26.04.2013 - 10:42:56: 25]: restoration of the certificates and the original keys...
    1 Datei () kopiert.
    1 Datei () kopiert.
    1 Datei () kopiert.
    [26.04.2013 - 10:42:56: 25]: attempt to restore...
    Could not reload vCenter SSL certificates
    [26.04.2013 - 10:42:57, 08]: ""cannot reload the server vCenter SSL certificates. " The certificate could not be unique. » »
    [26.04.2013 - 10:42:57: 10]: new certificates and keys deleting...
    [26.04.2013 - 10:42:57: 10]: restoration of the certificates and the original keys...
    1 Datei () kopiert.
    1 Datei () kopiert.
    1 Datei () kopiert.
    [10: 42:57, 13 - 26.04.2013]: failure of the update of the certificate of vCenter.

    So I tried the manual way, as it is mentioned in this guide:

    I'm stuck here too, get a 'result of Method Invocation: vpx.fault.SecurityConfigFault ' after ""Invoke method ': "

    1. Go to https://localhost/mob/?moid=vpxd-securitymanager & vmodl = 1 on the server vCenter Server and load the certificates for the configuration using the managed object browser.
    2. Click continue if you are prompted with a warning on this certificate.
    3. Enter a vCenter Server administrator user name and password when prompted.
    4. Click reloadSslCertificate.
    5. Click the calling method. If successful, the window displays this message: result of Invocation of method: Sub.


    I tried to fix this, but there is not really a solution for this:

    http://communities.VMware.com/thread/429035

    so, I need help with this question

    SOLVED!

    Steps to follow:

    1. stop the vCenter service

    2. search for your ID in LS_ServiceID.prop in the folder C:\ProgramData\VMware\VMware VirtualCenter

    3. copy this ID (e.g. {C4672589-9258-42B1-90E2-1EF268BBD402}: 5 )

    4. change your vpxd.cfg in the same folder and replace

    vCenterService

    with

    your ID

    5. start vCenter Service

    Then, the SSL automation tool works!

    You need to undo changes.

Maybe you are looking for