|
Hmm UDF...don't know why I ran off here thinking I knew what I was talking about....
So I'll try your UDF but Lonkero brought up a valid point. Since our internal addressing can be close to peoples home networks because most people tend to use the class C approach...I cannot match simply on IP address alone. I was going to also see if I could match on DNS suffix for the local area adapter. If not domain.com then skip mapping printers...
I noticed this in the registry under HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
I could compare things to here to make it a bit easier but they keys are different per computer\interface making it hard...
Does your UDF grab the dns suffix as well? I'll try and put it in my code and give it a shot I'll let you guys know.
Thanks again so much for the help!
|