I have a configuration XML file which contains an encrypted password. From time to time we need to reset this password, and the methodology for doing so involves stripping out the string which is effectively the password from the XML file and saving the file.
The process also involves stopping and restarting a couple of services which I can manage, but I am yet to figure out a way of searching and replacing the string, as it can be different every time.
I'd like to do this in VBS (because that's pretty much all I am familiar with in the scripting world) but am happy to consider doing it any other way.
I have looked at the Replace function, but I am yet to find a way of putting a wildcard into the search criteria. I need to be able to search for:
<A>randomstuff</A>
and replace with:
<A></A>
For those who may be familiar with the situation, I am resetting the password for Websense Enterprise Manager.
The XML file appears to be v1.0:
<?xml version="1.0" encoding="UTF-8"?>
Thanks. Tom