4

When I go to Credential Manager in Windows 7 or Windows Server 2008, it lets me edit the cached credentials for my account. Is it possible to edit someone else's stored credentials on the same machine?

For example, I have a scheduled task that runs as SYSTEM and logs into Team Foundation Server using stored credentials. I set up these credentials by running cmd.exe as SYSTEM and running tf.exe, which prompted me for the credentials. Now SYSTEM has these cached credentials, but I don't know how to clear them if I ever need to.

Joey Adams
  • 277
  • 2
  • 4
  • 9
  • 1
    Not sure about the answer myself (short of "get their password and log in as them"), but [this question on SuperUser does deal with the same problem](http://superuser.com/q/537697/148034) and the not-accepted answer looks promising. – HopelessN00b Mar 14 '14 at 16:14

1 Answers1

5

You may find cmdkey.exe useful for this purpose. Start with a cmdkey /list and proceed from there with the appropriate item for cmdkey /delete.

Note that cmdkey itself does only allow to list credentials for the current user, but it should be far easier to get a Command Terminal under a different user account than a complete Desktop session. E.g. use runas /USER:proper_user cmd.exe or see ways to do it for SYSTEM.

Martin
  • 589
  • 4
  • 10
  • 27
Tohuw
  • 498
  • 2
  • 9
  • 24