• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 672
  • Last Modified:

Script to install local printer using TCP IP port.

Hi Everyone,

Is there a easier way to install local printer using TCP IP, instead manually installing on each PC using wizard. Currently Print server is being used in main office and we have two remote office which uses print server located in Main office to print and it is very slow. But when I create local printer using TCP IP port it is very responsive. We do not have any server in remote office.
All client PC are either running Windows XP and Windows 2000

Thank you.
0
Nirav04
Asked:
Nirav04
  • 3
  • 3
  • 2
  • +1
2 Solutions
 
andeporterCommented:
Setup the printer as shared on the print server.
Go to a workstation.

Click Start >> Run  Then type:

//servername/printername

this should map the shared printer on the client via TCP/IP
0
 
WadskiIT DirectorCommented:
I am guessing you want to do it via a script and not via a server as the previous expert suggested:

have a look at this site for the info on the script creation

http://users.telenet.be/mydotcom/howto/scripts/sysadmin/printers_tcpip.htm
0
 
andeporterCommented:
If you want to do it via script....add the

//servername/printername

line to your script file.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
activephotoCommented:
Here is an example by using built in vbs-scripts in windows, below you also links to more info about the scripts
How to add TCP/IP port
cscript /nologo c:\windows\system32\prnport.vbs -a -s [printer name] -r [PortName] -h [hostaddress] -me -y public -i 1 -o raw
How to add printer
cscript /nologo c:\windows\system32\prnmngr.vbs -a -p [PrinterName] -s [PrintServer] -m [DriverName] -r [PortName]
http://technet.microsoft.com/en-us/library/bb490974.aspx
0
 
activephotoCommented:
Sorry forgot one link to the script reference for managing a port
http://technet.microsoft.com/en-us/library/bb490975.aspx
Good luck!
/ Mikael
0
 
Nirav04Author Commented:
I have tried using //servername/printername but does not work, says windows cannot find specified printer.
Printer is located in remote office IP add: 192.168.1.2 (no server)
Print server is located in remote office IP Add 192.168.2.10

I want PC in remote office to print directly to 192.168.1.2 bypassing print server (192.168.2.10)
I can add local printer using wizard creating Standard TCP/IP port 192.168.1.2 then adding Laserjet 4250 driver

Like to do all this using command or script

Thanks,
0
 
WadskiIT DirectorCommented:
you need to amalgamate my response with the one from activephoto.

Mine to create the TCP-IP port and his to create the printer in the list.
0
 
Nirav04Author Commented:
Sorry I tried what "andeporter" suggested but did not work.

THanks,
0
 
andeporterCommented:
Are you setting up sharing for the printers on the server?
0
 
Nirav04Author Commented:
Thanks everyone.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now