Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Q. If I have a credential object in PowerShell, how can I extract the account password?

$
0
0

A. Credentials are created by passing a username and a secure string containing the password. There may be times when you actually need the plain text password back from the credential — for example, if you need to construct the URL for a GRAPH API call to Azure AD. To access the password is actually very simple, assuming the credential is stored in $cred to access the plain text password use:

Read More


Viewing all articles
Browse latest Browse all 6937

Trending Articles