Link to home
Start Free TrialLog in
Avatar of bob_kochanski
bob_kochanskiFlag for United States of America

asked on

Registry Changes through a GPO

I am looking for some insight here as I am by far no expert in writing.vbs or .bat file scripts.  I have a situation where I am looking to add a DWord value to 2 seperate registry keys:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Preferences
DWORD: ExchangeAddressDetect
Value: 0
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\AutoDiscover
DWORD: DisableAutoStartup
Value: 1

I am looking to push this out through a logon script in a GPO however I have not had much success in doing this.  I am wondering if it has something to do with either the fact that it is a HKEY_CURRENT_USER vs a HKEY_LOCAL_MACHINE or maybe it has something to do with permissions.  

I have created (let me rephrase, copied) a .bat file which looks like:
@ECHO OFF
regedit /s DisableAutoStartup.reg
regedit /s ExchangeAddressDetect.reg
cls

Any insight on this would be greatly appreciated as I am trying to meet a deadline.

Thanks,
Avatar of SysExpert
SysExpert
Flag of Israel image

ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bob_kochanski

ASKER

Worked like a charm.  

Thanks,