Sign in to follow this  
Followers 0
flyonthewall

installing printers

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

;~ *****************************************
;~   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

Share this post


Link to post
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")

thks so much joon.

Share this post


Link to post
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
Sign in to follow this  
Followers 0