Solved

Windows 7 script to change the printer's ip address

Posted on 2011-02-15
6
2,269 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:I_S_F_C_O
6 Comments
 
LVL 10

Expert Comment

by:c_a_n_o_n
ID: 34898151
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.
0
 

Author Comment

by:I_S_F_C_O
ID: 34898690
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.
0
 
LVL 15

Expert Comment

by:Russell_Venable
ID: 34912611
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:
http://www.experts-exchange.com/Networking/Misc/Q_20830849.html
Printer IP change script
0
 
LVL 6

Accepted Solution

by:
RootsMan earned 500 total points
ID: 34913808
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" 192.168.1.21

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 192.168.1.21

0
 
LVL 33

Expert Comment

by:digitap
ID: 35221362
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.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Before I go to far, let's explain HA (High Availability) and why you should consider it.  High availability is the mechanism used to provide redundancy to any service at the same site and appears as a single service to the users of that service.  As…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now