Hi I'm trying to write a logon script to check if a Registry Key exists and if it doesn't to load a .reg file. Can this be done? I tried with a standard logon script but I think I have the syntax wrong. Can anyone help? This is what I have so far;
if exist [HKEY_CURRENT_USER\SOFTWAR
E\Sequest Technologies\Tier\Configur
ation\Syst
ems] goto stop
if not exist [HKEY_CURRENT_USER\SOFTWAR
E\Sequest Technologies\Tier\Configur
ation\Syst
ems] goto execute
:execute
\\Tier-test\TIER Startup\TEST.reg
:stop
net time \\exchange /set /yes
Thanks
Start Free Trial