2 Replies Latest reply on Jul 12, 2016 12:41 AM by Vineeth

    saving multiple vcenter cred using New-VICredentialStoreItem

    Vineeth Hot Shot

      Hi folks

       

      How to save multiple vcenters credentials in single .xml file and call single vcenter once using that .xml file.

      ex:

      $vcenterserver="vcenter1","vcenter2","vcenter3","vcenter4"

      New-VICredentialStoreItem -Host $vcenterserver  -User domain\domainuser -Password 'password' -File "C:\cred.xml"

      its fail with below error

      vicrederror.JPG

       

      after executing as below if i supply host values "vcenter1","vcenter2","vcenter3","vcenter4" then its saving in .xml

      New-VICredentialStoreItem   -User domain\domainuser -Password 'password' -File "C:\cred.xml"

      Regards
      Vineeth.K