I'm trying to configure a session of type Powershell (local) and it was successful for one connection. I tried to setup a second one with different credentials and I'm getting an error indicating that the character & is not authorized.
This character is in my credential's password string which is linked by the credential repository.
I'm using the password with $USERNAME$ and $PASSWORD$ variable
How can I use the password which include a & in the embedded script of the Powershell session?
Thanks
2017-04-04 14_41_19-Remote Desktop Manager [IDEA Office 365 Exchange Shell].png
Hello,
using the variables results in the exact string to be inserted to replace the variable token. With special characters ($,&) this causes issues, and we can not manipulate the content of the password in any way.
The trick is to send it as an argument, while enclosing it in quotes.
My colleague Erica has a working solution, I will post it in a few minutes.
Best regards,
Maurice
Hello,
Could you please try to put the $PASSWORD$ variable between quotation marks?
Best regards,
Érica Poirier
Thanks Erica for your help.
It works with the variable in quotation marks!
I'll create a shared template to always have it under new sessions.
Thank your very much