Hi,
I'm working on a powershell script to create copies of web.config files and to hide all the passwords in the copies so they can be given to others. The problem I'm having is I can't figure out how to replace just the password and leave everything alse as is.
Here's the line from the web.config:
<add name="Global.All" type="Messaging.Sms.Provider" Url="https://www.wev.com/http/sendmsg?user=USERNAME&password=n0t@g00Dp@$$woRd&api_id=65666&to=%2b@@dest@@&msg=@@text@@&from=%2b5555551212" />
This will go to the password, but I can't figure out how to make it stop at the &, specifically I want to change this linen0t@g00Dp@$$woRd to xxxxxxxx
$passwords -replace
"
(?<=password=).+","xxxxxxx"
Any assistance would be appreciated!