/build/static/layout/Breadcrumb_cap_w.png

Installing printers, drivers with the K1000

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


0 Comments   [ + ] Show comments

Answers (2)

Posted by: dugullett 11 years ago
Red Belt
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


Comments:
  • 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. - mpace 11 years ago
  • 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 :-) - rplagens 11 years ago
    • Is this network or local? What part are you getting stuck on? - dugullett 11 years ago
  • 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... - rplagens 11 years ago
    • Copy it to notepad save it as a .vbs. Open a CMD prompt an enter cscript "c:\path\to\file\script.vbs - dugullett 11 years ago
      • Copy the entire script from ON ERROR RESUME NEXT to wshnet.setdefaultprinter.......? - rplagens 11 years ago
      • Yes. - dugullett 11 years ago
      • Ok. Will do. - rplagens 11 years ago
      • obviously I am naming the new .vbs script.vbs? - rplagens 11 years ago
    • Yes. You can name it whatever you like as long as the path is correct when you open your CMD. - dugullett 11 years ago
      • 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!! - rplagens 11 years ago
      • 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 - dugullett 11 years ago
  • Is this the location of the drivers? wshnet.AddWindowsPrinterConnection "\\prtsrv201\ArOCE2075-001" - rplagens 11 years ago
    • 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 11 years ago
  • @dugullett : where's your script gone? - gwir 11 years ago
    • 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.... - rplagens 11 years ago
    • 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.AddWindowsPrinterConnection "\\prtsrv201\OCE2075-001"
      wshnet.AddWindowsPrinterConnection "\\prtsrv201\AROCE2075-001"
      wshnet.SetDefaultPrinter "\\prtsrv201\OCE2075-001" - dugullett 11 years ago
      • Ohhh. YEs, it does appear to be gone. Thanks for reposting!! - rplagens 11 years ago
      • @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.AddWindowsPrinterConnection "\\prtsrv201\OCE2075-001"
        wshnet.AddWindowsPrinterConnection "\\prtsrv201\AROCE2075-001"
        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 - akilpatrick 10 years ago
      • The logs show "Running as: SYSTEM". Change it to "user logged into console". - dugullett 10 years ago
  • Thank you for repost! - gwir 11 years ago
  • All current recordings are accessible at www.kace.com/support/training/kke/archive The Link above will no longer work. - cblake 10 years ago
Posted by: jagadeish 11 years ago
Red Belt
1

Comments:
  • It appeasr as if yes, this is what I am looking for however; this user states that they have been unable to get this to work. So, yes, it is what I am looking for but also, I need it to work. Thanks - rplagens 11 years ago
  • this user states that he was unable to get that script to work in KACE.. See dugllett's answer in this link.. - jagadeish 11 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ