This one is just a note for me.
To clear cached credentials in TFS 2017 browse to
C:\Users\\AppData\Roaming\Microsoft\VisualStudio\15.0_ed299a44\Team Explorer and delete the
TeamExplorer.config file. You will then be prompted for credentials next time you start the TFS client.