Hi,
I try to use the new password userinput in a workflow command.
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:
...
[parameter(Mandatory=$true, HelpMessage="Password of the user with privileges to add the SVM to the ADS domain.")]
[string]$DomainAdmPasswd,
...
$pwd = Get-WfaInputPassword -EncryptedPassword $DomainAdmPasswd -ErrorAction Stop
Add-NcCifsServer -Name $CifsServerName -Domain $Domain -OrganizationalUnit $OrganizationalUnit -AdminUsername $DomainAdmUser -AdminPassword $pwd -Force -VserverContext
$VserverName -ErrorAction Stop
This results in the following error: Failed to create the Active Directory machine account "XXX". Reason: LDAP Error: The supplied credential is invalid.
Can someone help me with this?
Thanks in advance
Walter