Command error

Values of type string cannot be converted to system.security.securestring

HI @devendra_bhardwaj1

If you want to covert the string to secure string use this expression

(new System.Net.NetworkCredential(“”, “Your Password”)).SecurePassword

Regards
Sudharsan

Hi @devendra_bhardwaj1 - Try the below one

Variable of type string Output = New System.Net.NetworkCredential(String.Empty, your variablename of type secure string).Password

Still getting same issue

Thanks & Regards
Devendra Bhardwaj

@devendra_bhardwaj1 Check the above one and let us know if you face any issues