Remove-VICredentialStoreItem

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.

Syntax

-CredentialStoreItem  <VICredentialStoreItem[]>
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
CredentialStoreItem
VICredentialStoreItem[] named
  • pipeline
  • Specifies the credential store items you want to remove.

    [[-User]  <String>]
    [[-File]  <String>]
    [-Host  <String>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    optional
    User
    String 1 Specifies a user to filter the credential store items you want to remove.
    optional
    File
    String 2 Specifies the file location of the credential store items that are to be removed.
    optional
    Host
    String named Specifies a host to filter the credential store items you want to remove.

    Output

    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.

    Related Commands

    Feedback

    Was this page helpful?