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!
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!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Or if you don't want to boether with the .reg file....
REG ADD HKCU\Software\Microsoft\Of fice\11.0\ Common /v Security /t REG_DWORD /d 1 /f
REG ADD HKCU\Software\Microsoft\Of
Oops disregard, I meant........
REG ADD HKCU\Software\Microsoft\Of fice\11.0\ Common\Sec urity /v DisableHyperlinkWarning /t REG_DWORD /d 1 /f
REG ADD HKCU\Software\Microsoft\Of
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
ASKER
ok I added
[HKEY_CURRENT_USER\Softwar e\Microsof t\Office\1 1.0\Common \Security]
"disablehyperlinkwarning"= dword:0000 0001
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
[HKEY_CURRENT_USER\Softwar
"disablehyperlinkwarning"=
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
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\Of fice\11.0\ Common\Sec urity /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.
So either the..
reg import <file.reg>
or the ...
REG ADD HKCU\Software\Microsoft\Of
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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!
then run the following 'command reg import file.reg'
job done