Link to home
Start Free TrialLog in
Avatar of bigjacobi
bigjacobi

asked on

I need to write a login script to add a key to the registry in Windows XP.

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common
After you click the registry subkey, point to New on the Edit menu, and then click Key.
"  Type Security, and then press ENTER to name the key.
"  On the Edit menu, point to New, and then click DWORD Value.
"  Type DisableHyperlinkWarning, and then press ENTER to name the entry.
"  In the right pane, right-click DisableHyperlinkWarning, and then click Modify.
"  In the Edit DWORD Value dialog box, click Decimal, and then type 1 under Value data.

THANKS for the help!

Avatar of Kieran_Burns
Kieran_Burns

create the key on your pc and export it to a .reg file (right click, export)
then run the following 'command reg import file.reg'
job done
SOLUTION
Avatar of Kieran_Burns
Kieran_Burns

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
Or if you don't want to boether with the .reg file....

REG ADD HKCU\Software\Microsoft\Office\11.0\Common /v Security /t REG_DWORD /d 1 /f
Oops disregard, I meant........

REG ADD HKCU\Software\Microsoft\Office\11.0\Common\Security /v DisableHyperlinkWarning /t REG_DWORD /d 1 /f
Avatar of bigjacobi

ASKER

Hey Thanks! Is there a way to load that in a script or bat file? Then I can make it run on login.
Just add the command into the batch file of your choice, it runs as is
ok I added

[HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Security]
"disablehyperlinkwarning"=dword:00000001

to my bat file but it didn't add the key... is there anything else I need to add?
here is my login script bat file
Net use /delete f:
Net use F: \\server3\General
Net use /delete S:
Net use S: \\server3\SAN
Net use /delete L:
Net use L: \\server3\cadelaw
 
[HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Security]
"disablehyperlinkwarning"=dword:00000001

Open in new window

No, you don't add the registry information to that batch file, you add the command lines we posted above.
So either the..

reg import <file.reg>

or the ...

REG ADD HKCU\Software\Microsoft\Office\11.0\Common\Security /v DisableHyperlinkWarning /t REG_DWORD /d 1 /f

If you choose the .reg file method, make sure the .reg file you saved is in the same path of the logon script, or you include the full path in the command line.
ASKER CERTIFIED SOLUTION
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
oh sorry Kenneniah! I didn't even see your entry I just looked at the last one... I did what you said and it works great! thanks!