Jump to content

Adding printer Remotely


Interface

Recommended Posts

How can I add printers remotely to the client mechian .Is there any utility ? or how can I write a script for that. I have a Domain and print server .I have 40 printers anong 27 are lexmark and other hp.All are connected to the network.I alloctate all these printers to different departments.I jut wanna add these printers remotely to the respective clients.I have 1000 clients.

Sorry to say this ,, Now Iam adding printers maunlly by going to eatch client....

please help..

Link to comment
Share on other sites


WOW.. 1000 clients.. that must take some time :)

u maybe able 2 make an autoit script to do that (or a vbs, same thing basically)

add all the drivers 2 1 disc (or ISO) & make a script that will run

Link to comment
Share on other sites

how can I write a script???????????? Can you help me....

we have only three type of printers Lexmark 614, HP4200 and lexmark2400

so puting a driver on acd is not a problem. All clients are Winxp pro and server is win2k3.

Link to comment
Share on other sites

well, easiest way is 2 download AutoIT ( unattended.msfn.org has it)

& look @ the help file , its very good, gives examples of commands

Run("notepad.exe")
Sleep(1000)
Send("This is an AutoIT Script {ENTER} Test.")
Sleep(500)
Send("Done!")

Would Output something like

This is an AutoIT Script

Test

Done!

The "Sleep" commands are periods of time to wait b4 continuing (time is in miliseconds)

its basically all sending & sleeping :) there are other options, like mouse clicks & stuff 2 u could look @

if u wanna try .vbs search microsoft.com for info on it

regards

Link to comment
Share on other sites

Fine...

I DOWNLOADED AUTOITv3. it is good...

now I have many questions ....!!!!!!!!!!

1.how can I write a script to invoke the add printer button on the client fron the serve?.

2.how can I fellowup with the screen of clinet system to conplete the printer installation?

Please give me some idea...to start write a script...

Link to comment
Share on other sites

If it sounds like that ,, then I would have ask trhat tfrom the begening of this post as

Can somebody write a script for me????????

I know that it is not as simple as that .......

that is why I am here for help...

Link to comment
Share on other sites

I know that lexmark is having a utility to install printers on multiple clients but we are using it also but there is some security problem in our network with this program. that is why we are looking for altranative.......

Link to comment
Share on other sites

No you don't need to get register, the solution is below at the end of the page.

There is few one I think good

Solution #1 : In the logon script of users you put these lines. The first one add the printer and the second (if you want) make it the default printer. SERVER is the name of the server where the printer is connected and PRINTER is the shared printer name.

RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /IN /N \\SERVER\PRINTER 1
RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /Y /N "PRINTER"

Solution #2 : Copy-paste this VBScript in CONPRINT.VBS and add a line like:

WSCRIPT.EXE CONPRINT.VBS \\SERVER\PRINTER

in the users logon script for calling the connection.

Set NetObj = CreateObject("WScript.Network")
PRINTER = WScript.Arguments(0)
NetObj.AddWindowsPrinterConnection PRINTER

Solution #3 : Use a tool called

CON2PRT.EXE

I don't have a Windows Server domain so I have not tested these solutions but I don't see why it wouldn't work.

Good luck

:)

Link to comment
Share on other sites

Finally I wrote a script to add printers remotely....

This is the code that I used for and is working fine.....

addprn.vbs

'Adding printer
Option Explicit
Dim multiPrinter, UNCpath1, UNCpath2, UNCpath3
UNCpath1="\\INTERFACE\LEX632"
UNCpath2="\\PRINTSERVER\PRN_SHAR_NAME"
UNCpath3="\\PRINTSERVER\PRN_SHAR_NAME"
Set multiPrinter= CreateObject("WScript.Network")
multiPrinter.AddWindowsPrinterConnection UNCpath1
'multiPrinter.AddWindowsPrinterConnection UNCpath2
'multiPrinter.AddWindowsPrinterConnection UNCpath3
'Make Setdeafult
Dim objPrinter
Set objPrinter = CreateObject("WScript.Network")
objPrinter.SetDefaultPrinter "PRINTSERVER\PRN_SHAR_NAME"
WScript.Echo "By: Belive The Force!"
WScript.Quit
' End of Script

First part of this will map the specified network shared printer and the rest will make maped one as deafult.

You can add this WHS script to the users logon script or users can run this ( if users have rights).

You can also use this script to add printer for locally connected, (LPT1/USB) shared printers.( I tested )

You can also use multiple shares for single user by specifing the UNCpath of the printer as UNCpath1...2....3... etc.(I tested)

You can also use this script in Active Ditactory (Domain) environment.(I tested)

Thanks Jdoe for giving me idea to write this script.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...