Sheel,
Your workflow has fundamental errors. I'm not going to explain them all, there are many.
But will resolve your query. To pass dynamically generated password to the next command use Powershell cmdlet : Add-WfaWorkflowParameter and Get-WfaWorkflowParameter in your next command. See how to to use them go-to WFA->Help->Support Links -> WFA Powershell cmdlets help
See the below command code for your help:
##Random Password
param
(
[parameter(Mandatory=$true, HelpMessage="Parameter Name")]
[string]$ParameterName
)
Add-Type -AssemblyName System.web
$Password = [Web.Security.Membership]::GeneratePassword(12,3)
Get-WFALogger -Info -message $("Generated " +$ParameterName+":"+$Password )
Add-WfaWorkflowParameter -Name $ParameterName -Value $Password
#next command Print The password
param
(
[parameter(Mandatory=$true, HelpMessage="Parameter Name")]
[string]$ParameterName
)
$Password = Get-WfaWorkflowParameter -Name $ParameterName
Get-WFALogger -Info -message $("Value of "+$ParameterName+" : " + $Password )
sinhaa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.