Well, I'd make it a step easier.

Detect their nework address/subnet and then populate the ALL the printers for that location.

All that would then need to be done manually, is choose the default.

Code:

$nic=0
:nicloop
$mygw=enumipinfo($nic,3) $ip=enumipinfo($nic,0)
select ; determine physical location of computer
Case $mygw="192.168.84.129" $Location="01"
Case $mygw="192.168.61.17" $Location="02"
Case $mygw="192.168.5.1" $Location="02"
Case $mygw="192.168.61.1" $Location="02"
Case $mygw="192.168.200.129" $Location="03"
Case $mygw="192.168.61.193" $Location="03"
Case $mygw="192.168.61.225" $Location="03"
Case $mygw="192.168.85.1" $Location="04"
Case $mygw="192.168.39.129" $Location="05"
Case $mygw="192.168.163.129" $Location="05"
Case $mygw="192.168.34.1" $Location="06"
Case $mygw="192.168.41.129" $Location="07"
Case $mygw="192.168.103.1" $Location="08"
Case $mygw="192.168.33.1" $Location="09"
Case $mygw="192.168.163.193" $Location="09"
Case $mygw="192.168.28.1" $Location="10"
Case $mygw="192.168.106.1" $Location="11"
Case $mygw="192.168.63.225" $Location="11"
if $Location = "00" and val($nic) < 10
$nic=val($nic)+1
goto nicloop
endif
if $Location = "00"
$=sendmessage("Admin","IP Detection Failed on @wksta @crlf @userid @crlf @lserver @crlf @scriptdir @crlf $mygw")
quit
endif





There may even be a WMI method of grabbing all the server's printers skipping the need for hardcode or ini's but I haven't looked for that (yet)
_________________________
How to ask questions the smart way <-----------> Before you ask