Use any of the UDFs I mentioned to check for IP address ranges.
E.g.
code:
$IPAddress=@IPADDRESS0
$NetworkID='192.168.10.0'
$SubnetMask='255.255.255.224'
if IsInSubnet($IPAddress,$NetworkID,$SubnetMask)
use x: '\\server\share'
endif

_________________________
There are two types of vessels, submarines and targets.