Link to home
Start Free TrialLog in
Avatar of Thomas N
Thomas NFlag for United States of America

asked on

change registry setting via GPO

Anybody have step by step instructions on how to push out a registry key via GPO logion or logoff script? Thanks
Avatar of Xaelian
Xaelian
Flag of Belgium image

Here you go:

startup.bat

@echo off
cls
REGEDIT /S regtweak.reg
goto EOF
:EOF

Open in new window


regtweak.reg

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"AllowWindowReuse"=dword:00000000

Open in new window


Notes
Also, regtweak.reg and startup.bat have to be in the same directory for it to work or else at the REGEDIT /S line you will have to enter the path to the registry script if in a different directory than the batch file.

Or you can use following .vbs:
Dim WSHShell, RegLocate, RegLocate1
Set WSHShell = WScript.CreateObject("WScript.Shell")
On Error Resume Next
RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"

WSHShell.RegWrite RegLocate,"00000000","REG_DWORD"

WScript.Quit ' Tells the script to stop and exit.

Open in new window


You only need to change the Registry key + value of it. Enjoy.
Avatar of David Johnson, CD
or just use group policy preferences, much easier than the old ways (script/custom adm)


http://www.unidesk.com/blog/gpos-set-custom-registry-entries-virtual-desktops-disabling-machine-password

Thanks

Mike
@mkline71  I'd forgotten about that one.. and I use it... slap head firmly
no problem....GPP has made life a lot easier :)

Thanks

Mike
Avatar of Thomas N

ASKER

thanks mkline. I tried editing the GPO but it did not work. I edited it in 2008 server and my machines are all XP. Could that be the reason why it didnt work?
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