How can I deploy printers, and, or, print drivers through Kace K1000?

4

Americas KKE - Deploying Printers with your K1000

If this link expires, all recordings can be found http://fwww.kace.com/support/training/kke/archive

• I have done dozens of printers using this method. Some printers can be fussy when deploying silently so worst case scenario the user will have to see a progress bar.
• Well, I think I am just missing it as to how to do it. The steps. I watched the recorded webinar but I guess I am just missing something. What do I need to do to intall a printer on a workstation using Kace. I am just not understanding the steps from the beginning to end. I am having a "challenging" moment with this :-)
• Is this network or local? What part are you getting stuck on?
• This content is currently hidden from public view.
Reason: Removed by member request
• This is where I am lost. Forgive me. I run the last 3 lines from a CMD prompt? Or I run the entire script from "On Error Resume Next" to the end. This is what I am not seeing...
• Copy it to notepad save it as a .vbs. Open a CMD prompt an enter cscript "c:\path\to\file\script.vbs
• Copy the entire script from ON ERROR RESUME NEXT to wshnet.setdefaultprinter.......?
• Yes.
• Ok. Will do.
• obviously I am naming the new .vbs script.vbs?
• Yes. You can name it whatever you like as long as the path is correct when you open your CMD.
• Ok. Yes, it worked. It still required some interaction by the user so I am going to experiment to see how I can overcome that.....Thanks!!
• Create a Online Kscript. Make sure to set "run as logged in user". No user interaction should have to happen.

http://www.itninja.com/question/kace-k1000-how-do-you-run-a-vbscript-file
• Is this the location of the drivers? wshnet.AddWindowsPrinterConnection "\\prtsrv201\ArOCE2075-001"
• That's the name of the "\\print server\printer name". Like I said I had my drivers on the server so I didn't need to add that in. I'm not sure of your setup?
• @dugullett : where's your script gone?
• It appears to be working. I am looking for a solution that will install the same network printer for anyone that uses this particular PC automatically....
• I'm not sure where that went? I don't remember removing it, and I'm not sure why I would have. Here it is again.

ON ERROR RESUME NEXT
Set wshNet = CreateObject("WScript.Network")
Set wshPrn = wshNet.EnumPrinterConnections
For x = 0 To wshPrn.Count - 1 Step 2
If Left(wshPrn.Item(x+1),2) = "\\" Then wshNet.RemovePrinterConnection wshPrn.Item(x+1),True,True
Next

wshnet.SetDefaultPrinter "\\prtsrv201\OCE2075-001"
• Ohhh. YEs, it does appear to be gone. Thanks for reposting!!
• @dugullett I have setup the Online Kscript and run as logged in users as you mentioned above and edited the script to work for us as you mentioned here: http://www.itninja.com/question/installing-printers-drivers

ON ERROR RESUME NEXT
Set wshNet = CreateObject("WScript.Network")
Set wshPrn = wshNet.EnumPrinterConnections
For x = 0 To wshPrn.Count - 1 Step 2
If Left(wshPrn.Item(x+1),2) = "\\" Then wshNet.RemovePrinterConnection wshPrn.Item(x+1),True,True
Next

wshnet.SetDefaultPrinter "\\prtsrv201\OCE2075-001"

I see the command window open on the target machine as if it is running, but nothing happens. All the drivers are on the print server for all our printers.

I uploaded the dependency .VBS file and set the following:

I ran the Policy Task as Success using"

Launch a program:

Directory: $(KACE_SYS_DIR) File: cscript.exe Parameters:$(KACE_DEPENDENCY_DIR)\PrinterInstallScript.vbs

I am not sure what I am missing. Logs shows this:

For our XP Machine:
Log for Printer Install on LabSC111-028[ Show All ]
Started: 01/15/2014 08:33:19
Finished: 01/15/2014 08:33:19
Elapsed Time: 0 second
Status: 1
Output Log
Running as: SYSTEM
Launched Process: cscript.exe
Activity Log
Launching program: 'C:\WINDOWS\System32\cscript.exe' 'C:\Documents and Settings\All Users\Dell\KACE\kbots_cache\packages\kbots\121\PrinterInstallScript.vbs' wait='false'

For our Windows 7 Machine:

Log for Printer Install on Lab01-PC[ Show All ]
Started: 01/15/2014 08:33:19
Finished: 01/15/2014 08:33:19
Elapsed Time: 0 second
Status: 1
Output Log
Running as: SYSTEM
Launched Process: cscript.exe
Activity Log
Launching program: 'C:\Windows\System32\cscript.exe' 'C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\121\PrinterInstallScript.vbs' wait='false' - See more at: http://www.itninja.com/question/kace-k1000-how-do-you-run-a-vbscript-file#sthash.WgMbD7Op.dpuf
• The logs show "Running as: SYSTEM". Change it to "user logged into console".
• Thank you for repost!
• All current recordings are accessible at www.kace.com/support/training/kke/archive The Link above will no longer work.

0