< Back

New-VICredentialStoreItem

Sun Jan 19, 2020 7:01 pm

NAME New-VICredentialStoreItem



SYNOPSIS

This cmdlet creates a new entry in the credential store.





SYNTAX

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

[<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-File <String>

Specifies a file path where you want to store the new credentials.



Required? false

Position? 4

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Host <String>

Specifies the host for which you want to create the new credentials item.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Password <String>

Specifies a password.



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-User <String>

Specifies a user name.



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

The newly created VICredentialStoreItem object







NOTES





This cmdlet is not supported on the Core edition of PowerShell.



-------------------------- Example 1 --------------------------



New-VICredentialStoreItem -Host 192.168.1.10 -User Admin -Password pass



Adds a new item in the default credential store file.



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... eItem.html

Get-VICredentialStoreItem

Remove-VICredentialStoreItem