Remove cached credentials for MS Onedrive using a script
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
powershell cache onedrive
add a comment |
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
powershell cache onedrive
Related: How to clear credentials associated with the OneDrive for Business sync app?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:48
What has you research shown you so far? Have you seen this yet? windowsitpro.com/systems-management/… Have you made any actual attempts at scripting this yet? If so, where exactly are you getting stuck?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:49
In Credential Manager, there is OneDrive Cache Credential, but this is for OneDrive Personal. For OneDrive Business, it might be listed as SharePoint. Might review your Credentials and see if it is SharePoint.
– Sun
Jan 14 '15 at 18:21
add a comment |
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
powershell cache onedrive
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
powershell cache onedrive
powershell cache onedrive
asked Jan 14 '15 at 16:58
James Ison-StiererJames Ison-Stierer
111
111
Related: How to clear credentials associated with the OneDrive for Business sync app?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:48
What has you research shown you so far? Have you seen this yet? windowsitpro.com/systems-management/… Have you made any actual attempts at scripting this yet? If so, where exactly are you getting stuck?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:49
In Credential Manager, there is OneDrive Cache Credential, but this is for OneDrive Personal. For OneDrive Business, it might be listed as SharePoint. Might review your Credentials and see if it is SharePoint.
– Sun
Jan 14 '15 at 18:21
add a comment |
Related: How to clear credentials associated with the OneDrive for Business sync app?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:48
What has you research shown you so far? Have you seen this yet? windowsitpro.com/systems-management/… Have you made any actual attempts at scripting this yet? If so, where exactly are you getting stuck?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:49
In Credential Manager, there is OneDrive Cache Credential, but this is for OneDrive Personal. For OneDrive Business, it might be listed as SharePoint. Might review your Credentials and see if it is SharePoint.
– Sun
Jan 14 '15 at 18:21
Related: How to clear credentials associated with the OneDrive for Business sync app?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:48
Related: How to clear credentials associated with the OneDrive for Business sync app?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:48
What has you research shown you so far? Have you seen this yet? windowsitpro.com/systems-management/… Have you made any actual attempts at scripting this yet? If so, where exactly are you getting stuck?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:49
What has you research shown you so far? Have you seen this yet? windowsitpro.com/systems-management/… Have you made any actual attempts at scripting this yet? If so, where exactly are you getting stuck?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:49
In Credential Manager, there is OneDrive Cache Credential, but this is for OneDrive Personal. For OneDrive Business, it might be listed as SharePoint. Might review your Credentials and see if it is SharePoint.
– Sun
Jan 14 '15 at 18:21
In Credential Manager, there is OneDrive Cache Credential, but this is for OneDrive Personal. For OneDrive Business, it might be listed as SharePoint. Might review your Credentials and see if it is SharePoint.
– Sun
Jan 14 '15 at 18:21
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f864715%2fremove-cached-credentials-for-ms-onedrive-using-a-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
add a comment |
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
add a comment |
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
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
answered Jan 21 '15 at 0:03
Mathias R. JessenMathias R. Jessen
3201414
3201414
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f864715%2fremove-cached-credentials-for-ms-onedrive-using-a-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Related: How to clear credentials associated with the OneDrive for Business sync app?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:48
What has you research shown you so far? Have you seen this yet? windowsitpro.com/systems-management/… Have you made any actual attempts at scripting this yet? If so, where exactly are you getting stuck?
– Ƭᴇcʜιᴇ007
Jan 14 '15 at 17:49
In Credential Manager, there is OneDrive Cache Credential, but this is for OneDrive Personal. For OneDrive Business, it might be listed as SharePoint. Might review your Credentials and see if it is SharePoint.
– Sun
Jan 14 '15 at 18:21