Replace a value in an .ini file using powershell
Posted on 2014-02-04
I'm pretty much new to powershell. What i want to achieve is the following;
I have an .ini file that is used to perform a silent install of some application. I need to install the application on a lot of different workstations. The .ini file has an ip address defined.
I need a powershell script that changes the ip address in the .ini file. When the script runs, i want a pop-up box that asks for the ip address. When i type for examaple 10.0.0.1, i want that ip address to be added or changed on a specific place in the .ini file.
Is that possible? (hope i made myself clear on this one)