?
Solved

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

Posted on 2009-05-06
10
Medium Priority
?
315 Views
Last Modified: 2012-06-21
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!

0
Comment
Question by:bigjacobi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 10

Expert Comment

by:Kieran_Burns
ID: 24315504
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
0
 
LVL 10

Assisted Solution

by:Kieran_Burns
Kieran_Burns earned 400 total points
ID: 24315517
ahem.... yeesh.
try running the FOLLOWING command:
reg import <file.reg>
where <file.reg> is the file you created when exporting the key
0
 
LVL 24

Expert Comment

by:Kenneniah
ID: 24315707
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
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 24

Expert Comment

by:Kenneniah
ID: 24315732
Oops disregard, I meant........

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

Author Comment

by:bigjacobi
ID: 24316551
Hey Thanks! Is there a way to load that in a script or bat file? Then I can make it run on login.
0
 
LVL 10

Expert Comment

by:Kieran_Burns
ID: 24316569
Just add the command into the batch file of your choice, it runs as is
0
 

Author Comment

by:bigjacobi
ID: 24316716
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

0
 
LVL 24

Expert Comment

by:Kenneniah
ID: 24316814
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.
0
 
LVL 24

Accepted Solution

by:
Kenneniah earned 1600 total points
ID: 24316822
So with my option your bat file would look like....
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
 
REG ADD HKCU\Software\Microsoft\Office\11.0\Common\Security /v DisableHyperlinkWarning /t REG_DWORD /d 1 /f

Open in new window

0
 

Author Comment

by:bigjacobi
ID: 24316953
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!
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question