• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

In Powershell for Virtual Machine Manager..how can I test that a credential object that I created is valid?

I have a credential object that I created  in Powershell called $credential.
How can I validate that this credential can authenticate to the VMM server?
Thx a bunch,
Voidy
0
nvancea
Asked:
nvancea
  • 3
1 Solution
 
BSonPoshCommented:
Just try it?

I am not sure exactly what you mean. I assume you mean you want to validate the credentials BEFORE you pass them to the VMM Server. If that is the case I am not certain you can do that. Why not just try them and catch the failure scenario?
0
 
nvanceaAuthor Commented:
The only way to try it is by  sending  a command to VMM that requires credentials . I thought that might be a method like "validate-credentials" that can do that.
0
 
BSonPoshCommented:
Not sure what the point of  "validate-credentials"  would be. You can effectively do the same thing by "trapping" the failure.

It seems like un-needed network traffic.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now