< Back

Set-CredentialStoreItem

Sun Jan 19, 2020 6:36 pm

NAME Set-CredentialStoreItem



SYNOPSIS

Changes the credentials for the given remote host in the store.





SYNTAX

Set-CredentialStoreItem -RemoteHost <String> [-Identifier <String>] [-Credential <PSCredential>]

[<CommonParameters>]



Set-CredentialStoreItem -RemoteHost <String> [-Identifier <String>] [-Credential <PSCredential>] -Shared [-Path

<String>] [<CommonParameters>]





DESCRIPTION

Use this function to update your already stored RemoteHost items.





PARAMETERS

-RemoteHost <String>

Specify the host you for which you would like to change the credentials.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Identifier <String>

Defaults to "". Specify a string, which separates two CredentialStoreItems for the

same hostname.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

Provided the new credentials you want to update inside the RemoteHost item.



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Shared [<SwitchParameter>]

Switch to shared mode with this param. This enforces the command to work with a shared CredentialStore which

can be decrypted across systems.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Path <String>

Define the store in which your given host entry already exists.



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 : Set-CredentialStoreItem.ps1

- Author : Marco Blessing - marco.blessing@googlemail.com

- Requires :



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-CredentialStoreItem -Path "C:\\TMP\\mystore.json" -RemoteHost "esx01.myside.local"













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-CredentialStoreItem -Path "C:\\TMP\\mystore.json" -RemoteHost "esx01.myside.local" -Identifier svc















RELATED LINKS

https://github.com/OCram85/PSCredentialStore