|
Hmm, I checked all of my Printer share names and I seem to be using the correct shares. I've tried quite a few different printers.
Schuliebug,
I'm basically using the same format as Radius. I made a couple small changes, and I don't know what the $rc variable is.
Also, one of our consultants was nice enough to allow me to borrow a kixtart script that another client was using. I changed a couple of the Printer names to my companies server/shares and it is not mapping the default printer either.
Below is a copy of the scripting..
At (10,20) @fullname At (12,20) "Please Wait For Logon Script Execution" At (26,20) " " At (28,20) "Mapping your Common Directory and Printers" sleep 2
If ADDPRINTERCONNECTION ("\\hercules\4050") = 0 ? "Added printer connection to \\hercules\4050" Endif
;If ADDPRINTERCONNECTION ("\\pdc01\pb_acctserv_tst") = 0 ;? "Added printer connection to \\pdc01\pb_acctserv_tst" ;Endif
;If ADDPRINTERCONNECTION ("\\pdc01\pb_shipping_tst") = 0 ;? "Added printer connection to \\pdc01\pb_shipping_tst" ;Endif
;If ADDPRINTERCONNECTION ("\\pdc01\pb_shiptwo_tst") = 0 ;? "Added printer connection to \\pdc01\pb_shiptwo_tst" ;Endif
If ADDPRINTERCONNECTION ("\\backup\accounting") = 0 ? "Added printer connection to \\backup\accounting" Endif
If SetDefaultPrinter ("\\backup\accounting") = 0 ? "Set default printer to Accounting...." Endif
Return
I modified this to add //backup/accounting, and //hercules/4050 which are both my printers. The rest of the lines I REM'd.. those we're the pre-existing printers from the other company.
|