#1 08 Sep 2016 18:28

Alexander Ceed
Registered: 25 Sep 2011
Posts: 39

Change Printer IP in Registry using value from external file

Hello guys.
I have a printer installed using an old ip address and I need to do a complete search of the registry and replace the old IP with the new IP. Normally, this would've been done manually but I have many such machines and I'd like to do it via script if possible.

To better ilustrate the expected result, take the following key:
Which has a value called LocationInformation and a value of http.//

The script should search the registry for the OLD IP and, if exists, replace it with the NEW IP.
The IP addresses are stored in a text file (ip.txt) as follows:


Thank you for all your help


Board footer

Powered by FluxBB