Hi,
I have the function Test-InvokeVMScript. The function simply returns true or false based on the success of Invoke-VMScript. The function has two params “[string]System”, and “[PSCredential]Credential”. I am having issues specifying a dummy credential to “[PSCredential]Credential” in my test. When I run Invoke-Pester and my Test-InvokeVMScript describe block runs I am prompted for credentials. Below is the function and the test.
Adam Bertram., now is your chance for the $5!
Thanks,
Joey