Solved

Windows 7 script to change the printer's ip address

Posted on 2011-02-15
6
2,322 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

776 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