I've got an inventory script - which is still a work in progress - that I want to only run for a user if they are in their native network.

For example. UserA belongs to DeptA and roams between offices A, B, and C which all have their own ClassC subnets. User A could also visit and work from office D which belongs to a diff department. Right now the inventory script would run at login and I'd get an entry for a machine belonging to DeptB in Dept A's area.

I need the script to identify the classC of the current station (already done), department which the person belongs to (done via PrimaryGroup), and only run the inventory piece if the class C matches a valid entry for that department.

I was thinking of using an array or a select statement of valid Class C's for each department but I've got 40 departments to deal with.

Can anyone think of an easy way to organize this? If you need more description let me know.

Thanks,
Chris
_________________________
Chris Fricke
Clackamas County