Mart - here's the script that I am testing.
Code:
:Domain_Users ; Generic drives for all users
$section=$section+1
If InGroup ("Domain Users")
CLS
AT (10,25) "Mapping Drives...Please Wait"
use I: "\\PPFS\%username%"
use Q: "\\hpserver\hpwin"
EndIf
; Installing printers by workstation name worked great. The same printer was
; also installed in Citrix
;If Not @TSSESSION ; Citrix to use Workstation name
; $ComputerName = @WKSTA
;Else
; $ComputerName = %CLIENTNAME%
;EndIf
;Select
;Case Left($ComputerName,4) = "MVIT" ; Install printers by workstation name
; $ = AddPrinterConnection("\\sharepoint\2FLX4500PS")
;EndSelect
; Testing Printer mappings depending on subnet
; Print server is on subnet 24
; All printers get installed regardless which subnet the workstation is logging in from.
If instr(192.168.24.0, $255.255.255.0)
$ = AddPrinterConnection("\\sharepoint\2FLX8550")
EndIf
If instr(192.168.26.0, $255.255.255.0)
$ = AddPrinterConnection("\\sharepoint\2FLX4500PS")
EndIf
Thanks for everyone's input!
Edited by NTDOC (2006-08-09 11:01 PM)