Solved

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

Posted on 2009-05-06
10
308 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
  • 4
  • 3
  • 3
10 Comments
 
LVL 10

Expert Comment

by:Kieran_Burns
Comment Utility
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 100 total points
Comment Utility
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
Comment Utility
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
 
LVL 24

Expert Comment

by:Kenneniah
Comment Utility
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
Comment Utility
Hey Thanks! Is there a way to load that in a script or bat file? Then I can make it run on login.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 10

Expert Comment

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

Author Comment

by:bigjacobi
Comment Utility
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
Comment Utility
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 400 total points
Comment Utility
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
Comment Utility
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now