Syntax
Remove-VICredentialStoreItem [-CredentialStoreItem] <VICredentialStoreItem[]> [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet removes the credential store items that match the specified Host and User parameters. At least one of the Host and User parameters must be provided. To remove all passwords, call "Remove-VICredentialStoreItem *", which is a wildcard matching all hosts.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
CredentialStoreItem | VICredentialStoreItem[] | Specifies the credential store items you want to remove. | true | True (ByValue) | |
Host | String | Specifies a host to filter the credential store items you want to remove. | false | False | |
User | String | Specifies a user to filter the credential store items you want to remove. | false | False | |
File | String | Specifies the file location of the credential store items that are to be removed. | false | False | |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
NoneNotes
This cmdlet is not supported on the Core edition of PowerShell.Examples
-------------------------- Example 1 --------------------------
Remove-VICredentialStoreItem -Host 192.168.1.100 -Confirm
Removes all credentials for the specified host from the default credential store file.
-------------------------- Example 2 --------------------------
Remove-VICredentialStoreItem -User 'admin' -Host '192.168.*' -File 'credentials.xml' -Confirm
Removes all credentials for the specified user and network from a credential store file.