We have a custom key set in the registry of our XP client machines to
differentiate our image build versions. We would like to be able to check
that this key (or variants of, depending on build number) exists when a
users logs on to the domain (to be sure they are using current builds or
even actual internal images).

Can this be done via a simple logon script where it would check the presence
for one of the defined variable in the client registry (ie:
"\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\S ession
Manager\Environment")? If the variable is not present it would be logged to
a .txt file. I imagine this wouldn't be too difficult but my scripting
skills are simply not up to the job...appreciate any feedback.

Re: Logon Script registry check how to? by Marcin

Marcin
Fri Feb 01 10:26:17 PST 2008

you can use the VBScript-based method listed at
http://www.microsoft.com/technet/scriptcenter/funzone/games/tips08/gtip0118.mspx

hth
Marcin


Re: Logon Script registry check how to? by Meinolf

Meinolf
Fri Feb 01 10:27:08 PST 2008

Hello barkley,

Have a look here:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/oct04/hey1029.mspx

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

> We have a custom key set in the registry of our XP client machines to
> differentiate our image build versions. We would like to be able to
> check that this key (or variants of, depending on build number) exists
> when a users logs on to the domain (to be sure they are using current
> builds or even actual internal images).
>
> Can this be done via a simple logon script where it would check the
> presence for one of the defined variable in the client registry (ie:
> "\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\S ession
> Manager\Environment")? If the variable is not present it would be
> logged to a .txt file. I imagine this wouldn't be too difficult but my
> scripting skills are simply not up to the job...appreciate any
> feedback.
>