< Back

Remove-CredentialStoreItem

Sun Jan 19, 2020 6:36 pm

NAME Remove-CredentialStoreItem



SYNOPSIS

Remove the given credentials from the credential store.





SYNTAX

Remove-CredentialStoreItem -RemoteHost <String> [-Identifier <String>] [<CommonParameters>]



Remove-CredentialStoreItem -RemoteHost <String> [-Identifier <String>] -Shared [-Path <String>]

[<CommonParameters>]





DESCRIPTION

Use this CMDLet to completely remove an credential store item.





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



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

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

- Requires :



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



PS C:\\>Remove-CredentialStoreItem -RemoteHost "esx01.myside.local"













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



PS C:\\>Remove-CredentialStoreItem -Shared -RemoteHost "esx01.myside.local"













-------------------------- EXAMPLE 3 --------------------------



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













-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Remove-CredentialStoreItem -RemoteHost "esx01.myside.local" -Identifier svc















RELATED LINKS

https://github.com/OCram85/PSCredentialStore