Windows 7 script to change the printer's ip address

I have 200 windows 7 pro systems that have 3 network printers installed. Each printer has the same ip address, but are using different drivers, and have different names. I need to change the ip address listed in the registry for the printers, Can I do this without reinstalling the printers 600 times. PLEASE
Who is Participating?
RootsManConnect With a Mentor Commented:
You can use the following to create a batch file to change the Standard TCP/IP port for a printer:
set location="C:\Windows\System32\Printing_Admin_Scripts\en-US\"
cscript //NoLogo %location%prncnfg.vbs -t -p %1 -r "IP_%2"

Open in new window

Where %1 is the name of the printer as listed in Windows.
Where %2 is the IP address of the existing Standard TCP/IP you want to change to

For example. If you name the batch file "ChangePrinterPort.bat" then use:
ChangePrinterPort "HP LaserJet 2200"

Open in new window

If the Standard TCP/IP port does not exist, then use the following to add the port:
set location="C:\Windows\System32\Printing_Admin_Scripts\en-US\"
cscript //NoLogo %location%prnport.vbs -a -r IP_%1 -h %1 -me -y public -o raw -n 9100

Open in new window

Where %1 is the IP address of the new Standard TCP/IP port you're adding.

Example: AddIpPort.bat

Years ago had a similar situation, the easiest method in the end was for us to send email instructions with screenshots on how to change their printer IP address.
I_S_F_C_OAuthor Commented:
THe users do not have access to the settings. I will still have to do this from the administrator side. I want to reduce the time spent on each system. If I could just login to the system and run a script that would change the IP of the listed printers it would same loads of time.
Are you on a LAN? If so why dont you change the NAT mapping from your router as that is what a routers job is to translate your address to other computers and the outside world if its connected to the internet. Unless your talking about External IP addressing then A.) Talk to your ISP for a new IP Address or flush your DNS and renew. Or the next method which is probably what your talking about. Changing the registered IP Address of the printer in the registery.

There is a few scripts already defined here:
Printer IP change script
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.