Remove-VICredentialStoreItem Command | Vmware PowerCLI Reference

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

Remove-VICredentialStoreItem
-CredentialStoreItem < VICredentialStoreItem[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
CredentialStoreItem VICredentialStoreItem[] named
  • pipeline
Specifies the credential store items you want to remove.
optional ProgressAction ActionPreference named
Remove-VICredentialStoreItem
[ [-User ] < String > ]
[ [-File ] < String > ]
[-Host < String > ]
[-ProgressAction < ActionPreference > ]
[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.
optional ProgressAction ActionPreference named

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

VICredentialStoreItem

This cmdlet retrieves the credential store items available on a vCenter Server system.

This cmdlet creates a new entry in the credential store.

This cmdlet removes the specified credential store items.