Jump to content

Recommended Posts

Posted

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..


Posted

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

Posted

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.

Posted

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

Posted

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...

Posted

im not gonna do it for u.. (thats what it sounds like u are asking)

read the help file it explains EVERYTHING in there

Posted

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...

Posted

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.......

Posted

CORRECTION...

I think it's not a driver installation problem. You just need to connect the printer to the client. It's a network printer so the driver is already installed on the server.

You just need to connect the network printer to the client.

Read this... the answer is there...

Add network printers using a login script

Posted

:rolleyes:

your right .......

i tried the link on your post but to see the solution need a membership :)

I don't have that.,........... :D I will try to get that

thanks jdoe.... :D

Posted

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

:)

Posted

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.

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...