Hello,
I try to map network drive dynamically with credentials taken from orchestrator ( Get Credential activity ) for security purposes.
I have Invoke Power shell activity in Windows project
and put this inside
$driveLetter $drivePath and $userName are String
$password is SecureString
“New-PSDrive -Name $driveLetter -PSProvider FileSystem -Root $drivePath -Credential (New-Object -TypeName System.Management.Automation.PSCredential $userName,$password) -Persist”
Error i get is : Invoke Power Shell: Cannot process argument transformation on parameter ‘Credential’. userName
looks like it works in Legacy project but not in windows project, can you provide support ?