I'm trying to use WFA to call the VSC commandlets in VSC 6.0. I have a question on how to pass a password. When I try to grab the password from the input and use it, i get various errors. I tried Get-WFAInputPassword but I get the below error. Can anyone help with a code sample?
2015-04-26 12:55:31,880 ERROR [com.netapp.wfa.command.execution.instance.impl.ExecutionInstanceDaoImpl] (http-executor-threads - 59) [VSC_Create_DataStore] Cannot bind argument to parameter 'EncryptedPassword' because it is null.
Thanks for the reply. I've been trying different combinations with various error messages. Using the Get-WfaInputPassword -EncryptedPassword $vcsPass_Password still produces errors. The $vscPass is now an encrypted string but not one the PSCredential likes.
[parameter(Mandatory=$true, HelpMessage="Specify an VSC password.")] [Alias("vscPass_Password")] [string]$vscPass,