/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Deploying printers via windows spoolsss

01/19/2019 498 views

Has anyone used kace or any commandline tools to deploy printers via windows spoolsss?

0 Comments   [ + ] Show comments

Comments


All Answers

0

you can use a VB script:

' Variables must be declared
Option Explicit
' Suppress errors
on error resume next
' Declare Variables
Dim objPrinter, printerPath
' Path to printer (Add your information below)
printerPath = "\\dr-acad\red-204"
Set objPrinter = CreateObject("WScript.Network")
' Add printer
objPrinter.AddWindowsPrinterConnection printerPath
' Add as default
objPrinter.SetDefaultPrinter printerPath
wscript.sleep 200
' Path to printer (Add your information below)
printerPath = "\\dr-acad\red-204-single-sided"
Set objPrinter = CreateObject("WScript.Network")
' Add printer
objPrinter.AddWindowsPrinterConnection printerPath
wscript.sleep 200
WScript.Quit
Answered 01/22/2019 by: SMal.tmcc
Red Belt

  • Thank you. Can this be used for Mac OSX?
 
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