Re: Domain connection detection by Al
Al
Sun May 11 11:53:02 CDT 2008
"James Whitlow" <jwhitlow.60372693@bloglines.com> wrote in message
news:uVJv8nssIHA.3780@TK2MSFTNGP03.phx.gbl...
> "Al Dunbar" <AlanDrub@hotmail.com.nospaam> wrote in message
> news:OF8gMBssIHA.4876@TK2MSFTNGP02.phx.gbl...
>>
>> "James Whitlow" <jwhitlow.60372693@bloglines.com> wrote in message
>> news:u1yW%23RyrIHA.2492@TK2MSFTNGP06.phx.gbl...
>>> "Al Dunbar" <AlanDrub@hotmail.com.nospaam> wrote in message
>>> news:ORC5YFyrIHA.3680@TK2MSFTNGP05.phx.gbl...
>>>> We did something like that, but using a custom .exe rather than a
>>>> script. I do not know how it determines the presence of our network,
>>>> but I will try to track down the developer and ask him.
>>>
>>> Thanks, Al. I look forward to the information!
>>>
>>> I would like to use the most reliable and lightest weight method
>>> possible.
>>
>> I made some enquiries, but have yet to find out who might have this
>> information - sorry.
>
> Thanks for trying! I am thinking about using two loops. The first loop
> with just try a ping every few seconds. If the ping succeeds, then use the
> 'FolderExists' method of FSO to check for the DFS root. The looping ping
> should be very lightweight (correct me if I am wrong) and the second part
> will verify it really is our network they connected to.
>
> Does this appear like a reasonable approach? I am open to constructive
> criticism!
The most appropriate/efficient approach may depend on the methods involved
in establishing your connection into your network. But here's a thought:
perhaps there is something local to the PC itself that can be queried to
find out when such a connection has been established.
I just captured the output of the ipconfig/all command just before and just
after establishing the vpn connection, and found that the name of my ISP
disappeared from the "DNS suffix search list", being replaced by the netbios
name of our domain, i.e.:
before:
xxxxx.gc.ca
ed.shawcable.net
gc.ca
after:
xxxxx.gc.ca
XXXXX
gc.ca
/Al