|
Hello All, Forgive me for being a kix numskull, I've only just started looking at it for auto creating outlook profiles(excellent) and printers etc. I have created AD distribution lists, added users into them and want to auto create printers for the dist group. I have tried this bit of code but can not seem to get it to work properly. I am using the latest Kix version 4.5 and call it from a batch file kix.exe kixscript.kix
; Set Printers If fnInGroupAD("Sharp Printer") AddPrinterConnection ("\\servername\SHARP AR-407 PCL6") = 0 ? "Added printer connection...." EndIf If fnIngroupAD("Cardvat 1200 Printer") AddPrinterConnection ("\\servername\HP LaserJet 1200 Series PCL 6") SetDefaultPrinter ("\\servername\HP LaserJet 1200 Series PCL 6") ? "Added printer connection...." Endif if @userid = user SetDefaultPrinter ("\\servername\SHARP AR-407 PCL6") Endif
|