WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: spl on July 17, 2025, 02:56:43 AM

Title: Display Credentials
Post by: spl on July 17, 2025, 02:56:43 AM
One liner:
ShellExecute("rundll32.exe", "keymgr.dll,KRShowKeyMgr", "", @NORMAL, "")
Title: Re: Display Credentials
Post by: td on July 17, 2025, 07:07:23 AM
Of course, you can also use "Control Userpasswords2."
 
Start->Run, then type "Control Userpasswords2" sans double quotes.
After that, click the "Advanced" tab and then click "Manage Passwords".
Title: Re: Display Credentials
Post by: spl on July 17, 2025, 07:20:51 AM
Quote from: td on July 17, 2025, 07:07:23 AMOf course, you can also use "Control Userpasswords2."
 
Start->Run, then type "Control Userpasswords2" sans double quotes.
After that, click the "Advanced" tab and then click "Manage Passwords".

I'm spoiled with mine<grin>
Title: Re: Display Credentials
Post by: td on July 17, 2025, 09:23:37 AM
Yup, it is a little less "clicky" than

ShellExecute("control", "Userpasswords2", "", @NORMAL, "")
My only very minor nit is that the KRShowKeyMgr dialog box appears unappealing on high-DPI monitors. Apparently, MSFT never bothered to update it.

Title: Re: Display Credentials
Post by: spl on July 20, 2025, 07:03:44 AM
Quote from: td on July 17, 2025, 09:23:37 AMMy only very minor nit is that the KRShowKeyMgr dialog box appears unappealing on high-DPI monitors.

Unappealing or not. It still has buttons to store/retrieve creds.
Title: Re: Display Credentials
Post by: td on July 20, 2025, 07:32:39 AM
I did mention that my comment was a minor point. You can also add and view credentials using the "Userpasswords2" UI. Since it is the "new and improved" implementation, it takes more mouse clicks to accomplish the task.

In any case, you can't view any passwords. For my use, I plan to cook a WIL dialog that emulates your dialog with the addition of the ability to view passwords.  Perhaps it will make it into the Tech Database at some point. I need to free myself from the clutches of the Medical Industrial Complex first.
Title: Re: Display Credentials
Post by: spl on July 21, 2025, 09:49:09 AM
Quote from: td on July 20, 2025, 07:32:39 AMPerhaps it will make it into the Tech Database at some point. I need to free myself from the clutches of the Medical Industrial Complex first.

Best luck with that. One could develop an entire board section just for credentials. My last pass with them was developing secure string xml used with WinSCP script for web content.