Map network drive error

Hi everyone, I’m getting error while trying to map a network drive using PowerShell script in uipath.

I’m attaching my process and code and my error. If anyone have any idea about it please suggest me a solution.


image

PowerShell code :

“$bstr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($in_Password)
$PlainTextPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($bstr)
net use $in_DriveLetter $in_SharedNetworkPath /user:$in_Username $PlainTextPassword”

Error:

@ranaprathap928 In argument “s” is incorrect in this case. It is not a type of secureString. Check the argument binding again