Ah good advice looking at the header...lol It makes so much more sense now! Duh...

Now I've tested the UDF for the internal network and an external network. The physical adapter returns the following on 8.

Internal: COMPUTERNAME;domain.com;domain.com
External: COMPUTERNAME;;domain.com

I can use the second value to check:

If 2nd value(DNS Suffix) = domain.com

check ip and map printers

Else map network drives and exit.

I'm looking at your UDF and I see the section where you set this value except they all seem to equal $_WorkArray[8] How would I pull the 2nd value out of that? Thanks for tutoring me on my way through this!