New-VICredentialStoreItem

Synopsis

Creates a new entry in the credential store.

Syntax

New-VICredentialStoreItem [-Host] <String> [-User] <String> [[-Password] <String>] [[-File] <String>] [<CommonParameters>]

Related Commands

Get-VICredentialStoreItem
Remove-VICredentialStoreItem

Detailed Description

Creates 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.

Parameters

NameDescriptionRequired?Pipeline InputDefault Value
HostSpecify the host for which you want to create the new credentials item.truefalse
UserSpecify a user name.truefalse
PasswordSpecify a password.falsefalse
FileSpecify a file path where you want to store the new credentials.falsefalse

Input Type

Return Type

VMware.VimAutomation.Types.VICredentialStoreItem

Notes

Examples

--------------  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.

Copyright © 1998 - 2009 VMware, Inc. All rights reserved.