Share via


Where does Visual Studio 2015 get credentials from?

Question

Friday, November 16, 2018 1:59 PM

Hello masters,

I have somewhat unusual question. I'm using Visual Studio 2015 and it saves credentials of all accounts that I logged in with. I imagine this can be some sort of saved token to access credentials via some service. Previous version (VS2012) seems to use Windows Credential Manager to save passwords. The 2015 version apparently not.  Anyway, the question is like this: what files does VS2015 modify/create when I log in it with some (valid) credentials? I need to know that so I can clear them every time I open up VS2015, so the person who uses it has to log into it with his own account. I'm aware of "devenv /resetuserdata" command but what I'm interested in is to achieve practically the same without actually using it, but simply deleting cached VS files or wherever the information is saved. Can anybody help me out with this?

All replies (5)

Monday, November 19, 2018 2:38 AM

Hi Domas Motiejūnas,

Welcome to the MSDN forum.

>> I need to know that so I can clear them every time I open up VS2015, so the person who uses it has to log into it with his own account.

It seems you can directly go to Help-Register Product and click ‘Sign out’ to clear your account, then if other want to use VS, it requires them to sign in with their account.

You can also try to delete the files under this folder: C:\Users\xxxx\AppData\Local\IdentityService or the file ‘AccountStore.json’ to clear up the sign in information.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Tuesday, November 20, 2018 7:45 AM

Hello Sara,

Thank you for your answer.

>>It seems you can directly go to Help-Register Product and click ‘Sign out’ to clear your account, then if other want to use VS, it requires them to sign in with their account.

Im aware of this, but I need them to be done automatically, using, I.E. Windows Batch script.

>>You can also try to delete the files under this folder: C:\Users\xxxx\AppData\Local\IdentityService or the file ‘AccountStore.json’ to clear up the sign in information.

The problem is, I can't seem to locate neither .IdentityService folder in my AppData\Local, nor the file 'AccountStore.json'. Neither does windows search bring out any result regarding any of those. Might the following information be of any help: OS - Windows Server 2016 Datacenter Evaluation, VS - Visual Studio Professional 2015 Version 14.0.25420.01 Update 3.


Tuesday, November 20, 2018 9:27 AM

Hi Domas,

Thank you for your detail information.

It seems only VS 2017 have this folder to store the sign in information, sorry for this my misleading.

For VS 2015, we can only click Start and scroll down to the Visual Studio 2015 folder, expand it, run the ‘Developer Command Prompt for VS 2015' as administrator, redirect to the VS 2015 installation folder and run the command: devenv /resetuserdata to clean up the cache, then the VS 2015 will open it like the first usage.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Tuesday, November 20, 2018 11:34 AM

Hello Sara,

I would be way more interested to know what file(s) the command devenv /resetuserdata actually modifies/deletes to forget the accounts credentials. So far I only found out it cleans up VS cache in %APPDATA%, but clearing those manually seems to have no effect. It would be really nice if you would point me in the right direction, as what I found out that these credentials are probably not being kept in any VS dedicated files, but rather somewhere in Windows system. Previous VS version (VS2012) used Credential Manager for such purpose, but VS2015 still remains a mystery.

Best regards,

Domas


Wednesday, November 21, 2018 8:34 AM

Hi Domas,

After research, we cannot find if there have such file to store the account information or not, sorry for this inconveniences.

Maybe you can have a look at this tool to monitor the detail process during the sign in.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]