Affaan Abyaz
asked on
PowerShell form to use stored credentials and reuse
trying to prepare a form which can be reused for any project to re-validate the credential with one-time-saved credentials...
it should save the credentials locally and next time when same user try to login the credentials it should auto use the locally stored/cached credentials...
don't know where it is going wrong but really appreciate if you could help me fixing it.
Cheers
Aamer
Save-Creds.txt
it should save the credentials locally and next time when same user try to login the credentials it should auto use the locally stored/cached credentials...
don't know where it is going wrong but really appreciate if you could help me fixing it.
Cheers
Aamer
Save-Creds.txt
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Ben.. that works well.. Now i have a solution until storing the creds... but let's say if I want to reuse.. how to do that ?
if I need to call the saved credentials using get-credentials then what would be the syntax ?
Regards,
Aamer
if I need to call the saved credentials using get-credentials then what would be the syntax ?
Regards,
Aamer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great.. Thank You... let me give a try.
Cheers
Aamer
Cheers
Aamer
ASKER
Thank You.
Hey Affaan, glad to help :)
This code will check if an encrypted password file exists for the session, and if it does, it will load the credential, otherwise it will request the user provide the information.
Open in new window