I am writing a script and part of it needs to know the password of whatever user is logged in. The problem is I cannot figure out a way to get the password. I can get the username with –
Set oWshshell = WScript.CreateObject("WScript.Shell")
wscript.echo oWshShell.ExpandEnvironmentStrings("Username=%UserName%")
I was hoping it is possible to do something similar with the password. Is it possible to get the password of the user currently logged in? If so, how? Any help is appreciated.
This is completely impossible; Windows never stores passwords in plain text.