0

I have a need to be able to remove onedrive cached credentials from local machines from the windows credential manager using a script The reason - When a user is prompted to change their O365 password for some reason the local cached version of the password linked to OneDrive doesn't update and users start to get Sync errors.

The user could go and manually remove this entry but for some this is asking alot ;)

Any pointers would be great. Prefer Powershell but VB is ok too.

Regards

3

1 Answer 1

1

Windows comes with a command-line utility for the Credential Manager component: cmdkey

I don't have a OneDrive for Business account to test with, but you should see cached credentials in the output of:

cmdkey /list

Use PowerShell to grab the ouput from /list, extract the target name and call

cmdkey /delete:targetname

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .