PDA

View Full Version : Domain validation and the registry


Glynn Jones
August 23rd 04, 04:32 PM
Hi folks,

I need to able to tell via vbs scripting if a machine has
been validated by a domain controller or is using cached
information. I figure there must be a registry key for
this somewhere but can't find any information on it. Or is
there any other method?

Any info greatly appreciated

Glynn

allan grossman [mvp]
August 23rd 04, 05:07 PM
Hi, Glynn -

I'm not a developer but one easy way to tell is that a
domain login script won't run during a cached login. Can
you check for the existence of a mapped drive?

There are probably better ways to do this but this one
just came to mind as I was reading your post. I'm sure
someone will come up with a little better solution,
though.

Hope this helps a little -

>-----Original Message-----
>Hi folks,
>
>I need to able to tell via vbs scripting if a machine
has
>been validated by a domain controller or is using cached
>information. I figure there must be a registry key for
>this somewhere but can't find any information on it. Or
is
>there any other method?
>
>Any info greatly appreciated
>
>Glynn
>.
>

Glynn_Jones_UK
August 24th 04, 12:53 PM
Allan,

The script will actually be based on a laptop and will make some registry
changes when not validated by the DC. I assumed that the 'Volatile
Environment' section of the registry which lists the validating DC would be
blank when using the cached account but this isn't the case, it keeps the
last entry. There are a few ways to test connectivity but would prefer to to
rely on non network dependant methods... Thanks for the post though bud, nice
to kno the newsgroup system works!

Glynn

"allan grossman [mvp]" wrote:

> Hi, Glynn -
>
> I'm not a developer but one easy way to tell is that a
> domain login script won't run during a cached login. Can
> you check for the existence of a mapped drive?
>
> There are probably better ways to do this but this one
> just came to mind as I was reading your post. I'm sure
> someone will come up with a little better solution,
> though.
>
> Hope this helps a little -
>
> >-----Original Message-----
> >Hi folks,
> >
> >I need to able to tell via vbs scripting if a machine
> has
> >been validated by a domain controller or is using cached
> >information. I figure there must be a registry key for
> >this somewhere but can't find any information on it. Or
> is
> >there any other method?
> >
> >Any info greatly appreciated
> >
> >Glynn
> >.
> >
>

Google