I need to add a section in our script that will search an .ini file and find all instances of a certain text and replace that with different text.

We've currently changed the name of one of our servers and I'm looking for a way to automatically change the contents of an .ini file to point to the new server name. Ex:

embosser=\\abcnt04\printer123
needs changed to
embosser=\\abcnt86\printer123

I've looked at the readprofilestring and write profile string, but it doesn't seem to be what I'm looking for, or maybe I don't know know the right way to do it using those. Thanks for you help.