Hi there,

i've got a question about how i'll be able to give specific printers per iprange.

i've already tried something like:

function isiniprange($ipaddress,$iprangearray)

$ipaddress=@ipaddress0
$iparray[0]=10.18.132.0/254
if ISINIPRANGE($ipaddress,$iparray)
ADDPRINTERCONNECTION ("\\nl-lee-gs01\prn0301")
endif
endfunction

ipexamples are 10.10.34.0 to 220 (first iprange)
10.10.35.0 to 220 (second) and so on...

i already looked to a number of posts but they only contain scripts of how to give 1 thing to 1 specific iprange.

what i'm trying to get is to have 4 specific ipranges and to have specific printers being added per iprange.

could someone help me?

(btw sorry for the english.. )