Jump to content

installing printers


Recommended Posts

i'm using autoit to run a .vbs script to install printers. any user in the company can log onto our intranet, click on a link and install a printer.

is there any way to do this directly from autoit? works great, but i'm hoping i don't need all the .vbs scripts around.

;
;   Installs HP 4700 printer
;

RunWait (@ComSpec & ' /c "\\server\apps\vbscripts\printers\hp4700nv.vbs /q"', @TempDir, @SW_HIDE)
;
; MsgBox - HP 4700 NV Done
;
MsgBox (4096, "Printer Install", "HP 4700 NV Install Complete", 5)

hp4700nv.vbs

'*****************************************
'  Adds HP Color LaserJet 4700 PCL 6 NV 
'  
'*****************************************
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\tgcfps02\HP Color LaserJet 4700 PCL 6 NV"

thks for any assistance!

Link to comment
Share on other sites

;~ *****************************************
;~   Adds HP Color LaserJet 4700 PCL 6 NV 
;~ *****************************************
$WshNetwork =  ObjCreate("WScript.Network")
$WshNetwork.AddWindowsPrinterConnection ("\\tgcfps02\HP Color LaserJet 4700 PCL 6 NV")

Edited by Joon
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...