Solved

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

Posted on 2009-05-06
10
313 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 100 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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 400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 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