< Back
New-CredentialStoreItem
Post
NAME New-CredentialStoreItem
SYNOPSIS
Adds a credential store item containing host, user and password to the given store.
SYNTAX
New-CredentialStoreItem -RemoteHost <String> [-Identifier <String>] [-Credential <PSCredential>]
[<CommonParameters>]
New-CredentialStoreItem -RemoteHost <String> [-Identifier <String>] [-Credential <PSCredential>] -Shared [-Path
<String>] [<CommonParameters>]
DESCRIPTION
The credentials are stored without any relations to it's further use. If you need to change an existing
item please use Set-CredentialStoreItem. You need to decide afterwards, whether to use the credential for
a VIConnection, NetApp FAS or UCS Fabric Interconnect.
PARAMETERS
-RemoteHost <String>
The identifier or rather name for the given credentials.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Identifier <String>
Provide a custom identifier to the given remote host key. This enables you to store multiple credentials
for a single remote host entry. For example ad/sys1, ftp/sys1, mssql/sys1
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
You can provide credentials optionally as pre existing pscredential object.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Shared [<SwitchParameter>]
Define the CredentialStore where you want to add the new item. Default is always personal but can be
changed to shared, or even shared with custom path.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
Define the store in which you would like to add a new item.
Required? false
Position? named
Default value
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
[None]
OUTPUTS
[None]
NOTES
- File Name : New-CredentialStoreItem.ps1
- Author : Marco Blessing - marco.blessing@googlemail.com
- Requires :
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-CredentialStoreItem -Path "C:\\TMP\\mystore.json" -RemoteHost "esx01.myside.local"
RELATED LINKS
https://github.com/OCram85/PSCredentialStore
SYNOPSIS
Adds a credential store item containing host, user and password to the given store.
SYNTAX
New-CredentialStoreItem -RemoteHost <String> [-Identifier <String>] [-Credential <PSCredential>]
[<CommonParameters>]
New-CredentialStoreItem -RemoteHost <String> [-Identifier <String>] [-Credential <PSCredential>] -Shared [-Path
<String>] [<CommonParameters>]
DESCRIPTION
The credentials are stored without any relations to it's further use. If you need to change an existing
item please use Set-CredentialStoreItem. You need to decide afterwards, whether to use the credential for
a VIConnection, NetApp FAS or UCS Fabric Interconnect.
PARAMETERS
-RemoteHost <String>
The identifier or rather name for the given credentials.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Identifier <String>
Provide a custom identifier to the given remote host key. This enables you to store multiple credentials
for a single remote host entry. For example ad/sys1, ftp/sys1, mssql/sys1
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
You can provide credentials optionally as pre existing pscredential object.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Shared [<SwitchParameter>]
Define the CredentialStore where you want to add the new item. Default is always personal but can be
changed to shared, or even shared with custom path.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
Define the store in which you would like to add a new item.
Required? false
Position? named
Default value
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
[None]
OUTPUTS
[None]
NOTES
- File Name : New-CredentialStoreItem.ps1
- Author : Marco Blessing - marco.blessing@googlemail.com
- Requires :
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-CredentialStoreItem -Path "C:\\TMP\\mystore.json" -RemoteHost "esx01.myside.local"
RELATED LINKS
https://github.com/OCram85/PSCredentialStore