Monday, July 25, 2016

Powershell escape ampersand in string

Came across an interesting issue today.  I had a password which contained an ampersand which I was trying to save in an Azure key store.  This is how you escape this char:

"somepa`"&`"sword"

Annoying :-)


1 comment: