Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Get password from PowerShell credential object

$
0
0

Summary: Learn how to retrieve the password from a Windows PowerShell credential object.

Hey, Scripting Guy! Question I am having a problem connecting to an application via Windows PowerShell. How can I verify the user name and
           password that was supplied to the credential object?

Hey, Scripting Guy! Answer Assuming you have permissions to the object, you can use the GetNetworkCredential method, for example:

$a = Get-Credential

$a.GetNetworkCredential() | fl *


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>