When you connect to the Outlook account, a 'MicrosoftOffice16_Data:SSPI:[email protected]' entry is created in the credential manager. How can I get the modification date of this record in Powershell?

When you connect to the Outlook account, a 'MicrosoftOffice16_Data:SSPI:[email protected]' entry is created in the credential manager. How can I get the modification date of this record in Powershell?

You can install the
BetterCredentialsmodule from the PowerShell Gallery, e.g. with:Then use its
Find-Credentialcommand to locate the credentials of interest and examine the.LastWriteTimeproperty:You may have to tweak the wildcard pattern passed to the
-likeoperator to find the desired credentials.Note that while
Find-Credentialitself has a-Filterparameter, the patterns it supports are very limited (only a single*, and only on either end of the pattern) and even then they don't seem to work reliably (as of v4.5 of the module).