Hi,
below command for getting the password via powershell works for 1 serverbut throws and error for other server machine ?
Commnand - $credential.GetNetworkCredential().password
Error -
You cannot call a method on a null-valued expression.
At line:1 char:33
+ $credential.GetNetworkCredential <<<< ().password
+ CategoryInfo : InvalidOperation: (GetNetworkCredential:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
sid