Using the New-VICredentialStoreItem cmdlet it is possible to add credential store items for vCloud Director servers. The credential store items for vCloud Director servers must contain user name and organization in the following format: user_name:organization_name, where both names are lower-cased. I want to add a vCD system administrator to the credential store. A system administrator is not related to a tenant. I have tried user_name, user_name:, and user_name:system with no success. Does anybody know how to add a vCD system administrator to the credential store?
Message was edited by: Robert van den Nieuwendijk
Is this what you're looking for:
New-VICredentialStoreItem -Host "xxxxxxxxxxxxxx" -User Administrator@vsphere.local -Password password
Connect-CIServer has a -SaveCredentials flag, which will save the credentials to the local credential store. This has been working for me.