<?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: Using password userinput in command fails in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-password-userinput-in-command-fails/m-p/97919#M17298</link>
    <description>&lt;P&gt;Hi Walter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command which needs the password should have the parameter defined as a 'Password'. The way to do this is to have an alias for the parameter in the command definition.&lt;/P&gt;&lt;P&gt;This is how you would define it in your command definition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;[parameter(Mandatory=$true, HelpMessage="Password of the user with privileges to add the SVM to the ADS domain.")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;[Alias("Pwd_Password")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;[string]$DomainAdmPasswd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you use 'Discover Parameters', if the command parameter type is discovered as a 'Password', then you should be fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the return parameter from the Get-WfaInputPassword is a SecureString type. You need to convert this to plain String before using it as an input parameter to AdminCredential in the cmdlet. Alternatively, you can use the variant that accepts the PSCredential as an input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the 'Create and Configure Virtual Storage Machine' command as a reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2014 11:25:07 GMT</pubDate>
    <dc:creator>rajathr</dc:creator>
    <dc:date>2014-12-02T11:25:07Z</dc:date>
    <item>
      <title>Using password userinput in command fails</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-password-userinput-in-command-fails/m-p/97903#M17296</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to use the new password userinput in a workflow command.&lt;/P&gt;&lt;P&gt;I pass the userinput as a parameter to the command but when I want to use it, the command fails. Here is an excerpt from the command, showing the relevant code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;[parameter(Mandatory=$true, HelpMessage="Password of the user with privileges to add the SVM to the ADS domain.")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;[string]$DomainAdmPasswd,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;$pwd = Get-WfaInputPassword -EncryptedPassword $DomainAdmPasswd -ErrorAction Stop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Add-NcCifsServer -Name $CifsServerName -Domain $Domain -OrganizationalUnit $OrganizationalUnit -AdminUsername $DomainAdmUser -AdminPassword $pwd -Force -VserverContext&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;$VserverName -ErrorAction Stop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This results in the following error:&amp;nbsp;Failed to create the Active Directory machine account "XXX". Reason: LDAP Error: The supplied credential is invalid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:23:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-password-userinput-in-command-fails/m-p/97903#M17296</guid>
      <dc:creator>kiessl</dc:creator>
      <dc:date>2025-06-05T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using password userinput in command fails</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-password-userinput-in-command-fails/m-p/97919#M17298</link>
      <description>&lt;P&gt;Hi Walter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command which needs the password should have the parameter defined as a 'Password'. The way to do this is to have an alias for the parameter in the command definition.&lt;/P&gt;&lt;P&gt;This is how you would define it in your command definition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;[parameter(Mandatory=$true, HelpMessage="Password of the user with privileges to add the SVM to the ADS domain.")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;[Alias("Pwd_Password")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;[string]$DomainAdmPasswd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you use 'Discover Parameters', if the command parameter type is discovered as a 'Password', then you should be fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the return parameter from the Get-WfaInputPassword is a SecureString type. You need to convert this to plain String before using it as an input parameter to AdminCredential in the cmdlet. Alternatively, you can use the variant that accepts the PSCredential as an input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the 'Create and Configure Virtual Storage Machine' command as a reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 11:25:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-password-userinput-in-command-fails/m-p/97919#M17298</guid>
      <dc:creator>rajathr</dc:creator>
      <dc:date>2014-12-02T11:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using password userinput in command fails</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-password-userinput-in-command-fails/m-p/97923#M17299</link>
      <description>&lt;P&gt;Hi Rajathr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the command &lt;SPAN&gt;'Create and Configure Virtual Storage Machine'&amp;nbsp;&lt;/SPAN&gt;as a reference it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 12:08:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-password-userinput-in-command-fails/m-p/97923#M17299</guid>
      <dc:creator>kiessl</dc:creator>
      <dc:date>2014-12-02T12:08:58Z</dc:date>
    </item>
  </channel>
</rss>

