Link to home
Start Free TrialLog in
Avatar of Luis N
Luis NFlag for Spain

asked on

HKEY_Current_users key for all users

Hi,

How Can I save a register key that must be stored in

[HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\excel\...]

For all Users that logon in this machine?

Regards
Avatar of Anuroopsundd
Anuroopsundd
Flag of India image

can you provide more information about the key and settings. it will be helpful as their are some keys which are just for Current user and other can be set by Local Machine.
Avatar of Luis N

ASKER

I have this issue  http://support.microsoft.com/kb/2570623   and I fix it with the manual solution (I attach a copy in the end of the email)

The question is that the solution only work for the current user, if any other user logon in this machine, I need to do again the the fix for each user.


"You can use the EnableOnLoad registry entry to configure how you want Excel to handle opening workbooks for the OFV. By default, the EnableOnLoad entry is not present in the Windows registry. To add the EnableOnLoad entry to the Windows registry, follow these steps:
1.Exit Excel.
2.Click Start, click Run, type regedit, and then click OK.
3.Locate and then click to select the following registry key:

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\
4.After you select the key that is specified in step 3, point to New on the Edit menu, and then click Key.
5.Type Excel, and then press ENTER.
6.Select Excel, point to New on the Edit menu, and then click Key.
7.Type Security, and then press ENTER.
8.Select Security, point to New on the Edit menu, and then click Key.
9.Type FileValidation, and then press ENTER.
10.Select FileValidation, point to New on the Edit menu, and then click DWORD Value.
11.Type EnableOnLoad, and then press ENTER.
Note: The default value is 0 which disables the validation.
12.On the File menu, click Exit to quit Registry Editor."
so as i understand you want a registry key as below
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Security\FileVaidation\
and then DWORD Value ....Enable on Load with value 0

am i right?
Avatar of Luis N

ASKER

Exactly
ASKER CERTIFIED SOLUTION
Avatar of Anuroopsundd
Anuroopsundd
Flag of India image

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
Save above Code as file.Vbs and run it....
this will create entry for all the users profile under the HKEY_USERS.
so when the user login he should get the key already.

took some time to think for best solution... :)
Avatar of Luis N

ASKER

Thanks, but I thionk that when a new user logon for the first time has the same problem, in case that a new user, this new account hasn't got the registry key
entry is also made on HKLM so new user should also get the key  for new profile...
I mean entry can be made to HKLM and .Default profile so that new profile also have this entry by default.