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

Posted on 2008-11-13
Last Modified: 2013-11-07
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,
Question by:nvancea
    LVL 18

    Expert Comment

    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?
    LVL 18

    Expert Comment


    Author Comment

    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.
    LVL 18

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video discusses moving either the default database or any database to a new volume.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now