I do not know much about the adding printers bit.... but i can help with the vlan part.

Subnet()
BinaryIP()

will let you easly identify a computers subnet.

code:
if subnet(@ipaddress0,"10.27.100.0","255.255.255.0") = 1
? "this computer is in the 10.27.100 subnet"
endif

Bryce