Thanks \:\) sorry still abit new to this - what would be the full script/code to do the following (keeping it as basic as possible):

Define sites based on IP

site a = 192.168.1.0 = certain printers/mapped drives
site b = 192.168.2.0 = certain printers/mapped drives

To detect client IP (also code to get rid of IP spaces) and map a drive to the relevant site above, thanks.