Interface Posted July 24, 2004 Share Posted July 24, 2004 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 More sharing options...
MCT Posted July 24, 2004 Share Posted July 24, 2004 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 More sharing options...
Interface Posted July 24, 2004 Author Share Posted July 24, 2004 how can I write a script???????????? Can you help me....we have only three type of printers Lexmark 614, HP4200 and lexmark2400so 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 More sharing options...
MCT Posted July 24, 2004 Share Posted July 24, 2004 well, easiest way is 2 download AutoIT ( unattended.msfn.org has it)& look @ the help file , its very good, gives examples of commandsRun("notepad.exe")Sleep(1000)Send("This is an AutoIT Script {ENTER} Test.")Sleep(500)Send("Done!")Would Output something likeThis is an AutoIT ScriptTestDone!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 itregards Link to comment Share on other sites More sharing options...
Interface Posted July 24, 2004 Author Share Posted July 24, 2004 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 More sharing options...
MCT Posted July 24, 2004 Share Posted July 24, 2004 im not gonna do it for u.. (thats what it sounds like u are asking)read the help file it explains EVERYTHING in there Link to comment Share on other sites More sharing options...
Interface Posted July 24, 2004 Author Share Posted July 24, 2004 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 More sharing options...
Interface Posted July 24, 2004 Author Share Posted July 24, 2004 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 More sharing options...
jdoe Posted July 24, 2004 Share Posted July 24, 2004 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 Link to comment Share on other sites More sharing options...
Interface Posted July 25, 2004 Author Share Posted July 25, 2004 your right ....... i tried the link on your post but to see the solution need a membership I don't have that.,........... I will try to get thatthanks jdoe.... Link to comment Share on other sites More sharing options...
jdoe Posted July 25, 2004 Share Posted July 25, 2004 No you don't need to get register, the solution is below at the end of the page.There is few one I think goodSolution #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 1RUNDLL32.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\PRINTERin the users logon script for calling the connection.Set NetObj = CreateObject("WScript.Network")PRINTER = WScript.Arguments(0)NetObj.AddWindowsPrinterConnection PRINTERSolution #3 : Use a tool called CON2PRT.EXEI 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 More sharing options...
Interface Posted July 28, 2004 Author Share Posted July 28, 2004 Finally I wrote a script to add printers remotely....This is the code that I used for and is working fine.....addprn.vbs'Adding printerOption ExplicitDim multiPrinter, UNCpath1, UNCpath2, UNCpath3UNCpath1="\\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 SetdeafultDim objPrinterSet objPrinter = CreateObject("WScript.Network") objPrinter.SetDefaultPrinter "PRINTSERVER\PRN_SHAR_NAME"WScript.Echo "By: Belive The Force!"WScript.Quit' End of ScriptFirst 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now