Functions/Authentication/PSCredential/ESS/Clear-ESSCredentials.ps1
<#
.DESCRIPTION This function removes ALL stored credentials in the current user's ESS Cache. The Metadata for preset credentials is maintained in $Global:PS_CredentialMetadata (via Import/Export-CredentialMetadata) #> function Clear-ESSCredentials { [CmdletBinding()] Param() Process { # Define Credential Metadata $Metadata = $Global:PS_CredentialMetadata Foreach ($CM in $Metadata){Remove-ESSCredential -Name $CM.Name} write-host "All Credentials in $ENV:Username's ESS Cache have been cleared!" -ForegroundColor Yellow } } |