SyntaxNew-VICredentialStoreItem [-Host] <String> [-User] <String> [[-Password] <String>] [[-File] <String>] [<CommonParameters>]
Detailed DescriptionCreates a new entry in the credential store. If there is an existing entry for the specified host and user, it is overwritten. If the credential store file does not exist, it is created (along with its directory if needed). If no file is specified, the item is created in the default credential store file %APPDATA%\VMware\credstore\vicredentials.xml. The credential store is not designed to be a secure password repository. Although the passwords added to the credential store are obfuscated, they can be recovered by anyone who can access the credential store file. By default, only the user who has created the credential store file has rights to read it.
|Name||Description||Required?||Pipeline Input||Default Value|
|Host||Specify the host for which you want to create the new credentials item.||true||false|
|User||Specify a user name.||true||false|
|Password||Specify a password.||false||false|
|File||Specify a file path where you want to store the new credentials.||false||false|
-------------- Example 1 -------------- C:\PS>New-VICredentialStoreItem -Host '192.168.1.10' -User 'admin' -Password 'pa ssword' Adds a new item in the default credential store file.