5/15/2023 0 Comments Outlook credential manager![]() There are a few powershell modules written to try and do this, but the only one i found that handles this exceptions was on Github If the credential name aka targetname, has a hyphen surronded by spaces the cmdkey will not remove or create a a credential with that string " - ". If run from a batch file, if the credential has "(" or ")" without the double quotes, that is left and right paren, that credential will not be removed.Ģ. The cmdkey.exe utility when run from a batch file or a PowerShell command may encounter two issues related to special characters.ġ. I would prefer to use either cmd or powershell for this. I also would need a way to get the username and domain for each user and iterate them. Runas command is the closest shot I got but because it requires the password of the user it becomes very difficult and not something I would want in the uninstaller. Also I assume removing OS files will be dangerous and could have limitations (extra UAC prompt?) as well. I have learned that the credentials are stored as OS files under the C:\Users\_user_\AppData\Local\Microsoft\Credentials folder, but I can't know which files are the entries I want to delete and removing all would be dangerous for other applications. As far as I know cmdkey.exe /list only helps to list entries for the current user and can't remove local entries from another user. The uninstaller of course requires administrator privileges but still I find it very difficult to accomplish this.įor the current user that command is generally solved via cmdkey /delete=:X from a command prompt. On uninstall all credentials with stored with target "X" should be removed on all users. Let's call the target of the credential "X". The application stores credential entries for the current user using the CredentialManager ( keymgr.dll). ![]() I am currently implementing a "remove settings" for all users in a Windows uninstaller and came over an issue I am not even sure is possible to solve.
0 Comments
Leave a Reply. |