<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Usage of WFAInputPassword in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103793#M18366</link>
    <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some points here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need to declare parameter&amp;nbsp;&lt;SPAN&gt;$vcsPass of type &lt;EM&gt;Password&lt;/EM&gt; in your command. See example in WFA developer's guide on how to use it.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. &amp;nbsp; $passwordp = Get-WfaInputPassword -EncryptedPassword $vcsPass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This itself returns the $password in &lt;STRONG&gt;SecureString&lt;/STRONG&gt; format and hence you do not need the line:&amp;nbsp;$password = ConvertTo-SecureString -AsPlainText -Force $passwordp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just use the $passwordp to create your credential object :&amp;nbsp;$creds = New-Object System.Management.Automation.PSCredential $vscUser, $passwordp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2015 03:23:58 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2015-04-27T03:23:58Z</dc:date>
    <item>
      <title>Usage of WFAInputPassword</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103789#M18365</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use WFA to call the VSC commandlets in VSC 6.0.&amp;nbsp;&amp;nbsp; I have a question on how to pass a password.&amp;nbsp;&amp;nbsp;&amp;nbsp; When I try to grab the password from the input and use it,&amp;nbsp; i get various errors.&amp;nbsp; I tried Get-WFAInputPassword but I get the below error.&amp;nbsp; Can anyone help with a code sample?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 &lt;FONT color="#800000"&gt;parameter 'EncryptedPassword' because it is null.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import-module VSC&lt;BR /&gt;Get-WFALogger -Info -message ("Username " + $vscUser)&lt;BR /&gt;Get-WFALogger -Info -message (" Password: " + $vscPass)&lt;BR /&gt;&lt;FONT color="#800000"&gt;$passwordp = Get-WfaInputPassword -EncryptedPassword $vcsPass&lt;/FONT&gt;&lt;BR /&gt;$password = ConvertTo-SecureString -AsPlainText -Force $passwordp&lt;/P&gt;&lt;P&gt;$creds = New-Object System.Management.Automation.PSCredential $vscUser, $password&lt;BR /&gt;Connect-VSCserver $vscServer -Credential $creds&lt;/P&gt;&lt;P&gt;$SystemID = Get-VscStorageSystemId -ipAddress $Cluster&lt;BR /&gt;Get-WFALogger -Info -message (" System ID of " + $Cluster + " is " + $SystemID)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 04:29:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103789#M18365</guid>
      <dc:creator>mszafran</dc:creator>
      <dc:date>2025-06-05T04:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of WFAInputPassword</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103793#M18366</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some points here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need to declare parameter&amp;nbsp;&lt;SPAN&gt;$vcsPass of type &lt;EM&gt;Password&lt;/EM&gt; in your command. See example in WFA developer's guide on how to use it.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. &amp;nbsp; $passwordp = Get-WfaInputPassword -EncryptedPassword $vcsPass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This itself returns the $password in &lt;STRONG&gt;SecureString&lt;/STRONG&gt; format and hence you do not need the line:&amp;nbsp;$password = ConvertTo-SecureString -AsPlainText -Force $passwordp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just use the $passwordp to create your credential object :&amp;nbsp;$creds = New-Object System.Management.Automation.PSCredential $vscUser, $passwordp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 03:23:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103793#M18366</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-04-27T03:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of WFAInputPassword</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103801#M18369</link>
      <description>&lt;P&gt;Sinhaa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; I've been trying different combinations with various error messages.&amp;nbsp; Using the Get-WfaInputPassword -EncryptedPassword $vcsPass_Password&amp;nbsp; still produces errors.&amp;nbsp;&amp;nbsp; The $vscPass is now an encrypted string but not one the PSCredential likes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My parameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[parameter(Mandatory=$true, HelpMessage="Specify an VSC password.")]&lt;BR /&gt;[Alias("vscPass_Password")] [string]$vscPass,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import-module VSC&lt;BR /&gt;Get-WFALogger -Info -message ("Username " + $vscUser)&lt;BR /&gt;Get-WFALogger -Info -message (" Password: " + $vscPass)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$creds = New-Object System.Management.Automation.PSCredential $vscUser, $vscPass&lt;BR /&gt;Connect-VSCserver $VSCHost -Credential $creds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2015-04-27 08:44:10,583 INFO [com.netapp.wfa.command.execution.instance.impl.ExecutionInstanceDaoImpl] (http-executor-threads - 27) [VSC_Create_DataStore] Username mszafran@netappusps.demo&lt;BR /&gt;2015-04-27 08:44:10,630 INFO [com.netapp.wfa.command.execution.instance.impl.ExecutionInstanceDaoImpl] (http-executor-threads - 24) [VSC_Create_DataStore] Password: cZlo6RBVImU/8+d3KfGOqg==&lt;BR /&gt;2015-04-27 08:44:10,724 ERROR [com.netapp.wfa.command.execution.instance.impl.ExecutionInstanceDaoImpl] (http-executor-threads - 29) [VSC_Create_DataStore] Cannot find an overload for "PSCredential" and the argument count: "2".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 12:49:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103801#M18369</guid>
      <dc:creator>mszafran</dc:creator>
      <dc:date>2015-04-27T12:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of WFAInputPassword</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103826#M18376</link>
      <description>&lt;P&gt;The correct code should be:&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="Specify an VSC password.")]&lt;BR /&gt;[Alias("vscPass_Password")] [string]$vscPass,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import-module VSC&lt;BR /&gt;Get-WFALogger -Info -message ("Username " + $vscUser)&lt;BR /&gt;Get-WFALogger -Info -message (" Password: " + $vscPass)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Get the password in Secure String format.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$vcsPass_Sec= Get-WfaInputPassword -EncryptedPassword $vcsPass&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$creds = New-Object System.Management.Automation.PSCredential $vscUser, $vscPass_Sec&lt;BR /&gt;Connect-VSCserver $VSCHost -Credential $creds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 03:52:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Usage-of-WFAInputPassword/m-p/103826#M18376</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-04-28T03:52:56Z</dc:date>
    </item>
  </channel>
</rss>

