NetSolve-VA
asked on
Need small app to modify HKEY_CURRENT_USER
Let me start off by saying I dont know how to program. I need a tiny app that a user can run to change some settings on HKEY_CURRENT_USER. What I am trying to achieve is covered in How to turn off e-mail matching for certificates in Outlook (http://support.microsoft.com/kb/276597 )
Basically this just entails a user editing the registry for the appropriate version of Outlook. The problem is that the users dont have permissions to run any registry editor or even the reg.exe command and since the key is HKEY_CURRENT_USER they have to be logged in to implement the change.
I wrote a batch file using the Reg ADD commands. Again the issue that the local users dont have permission to run any registry editor or Reg.exe requires that I have to have an administrator log on and give the Local Users group Read and Execute permission on Reg.exe before I can have the user run the bat file. So I was thinking that if I had an executable that just made the changes I could have the user run it when they logged on from a shared directory. This would eliminate two concerns; one is that my current plan leaves Reg.exe available for users to be able to run commands against. The other is that it is a two step process that requires the administrator to log onto each machine to give the local user the permission to run reg.exe. We are talking about hundreds of machines each month.
Here is the bat file I wrote:
REG ADD HKLM\SOFTWARE\Microsoft\Of fice\9.0\O utlook\Sec urity /v SupressNameChecks /t REG_DWORD /d 1
REG ADD HKCU\SOFTWARE\Microsoft\Of fice\10.0\ Outlook\Se curity /v SupressNameChecks /t REG_DWORD /d 1
REG ADD HKCU\SOFTWARE\Microsoft\Of fice\11.0\ Outlook\Se curity /v SupressNameChecks /t REG_DWORD /d 1
REG ADD HKCU\SOFTWARE\Microsoft\Of fice\12.0\ Outlook\Se curity /v SupressNameChecks /t REG_DWORD /d 1
Help!
Basically this just entails a user editing the registry for the appropriate version of Outlook. The problem is that the users dont have permissions to run any registry editor or even the reg.exe command and since the key is HKEY_CURRENT_USER they have to be logged in to implement the change.
I wrote a batch file using the Reg ADD commands. Again the issue that the local users dont have permission to run any registry editor or Reg.exe requires that I have to have an administrator log on and give the Local Users group Read and Execute permission on Reg.exe before I can have the user run the bat file. So I was thinking that if I had an executable that just made the changes I could have the user run it when they logged on from a shared directory. This would eliminate two concerns; one is that my current plan leaves Reg.exe available for users to be able to run commands against. The other is that it is a two step process that requires the administrator to log onto each machine to give the local user the permission to run reg.exe. We are talking about hundreds of machines each month.
Here is the bat file I wrote:
REG ADD HKLM\SOFTWARE\Microsoft\Of
REG ADD HKCU\SOFTWARE\Microsoft\Of
REG ADD HKCU\SOFTWARE\Microsoft\Of
REG ADD HKCU\SOFTWARE\Microsoft\Of
Help!
ASKER
Thank you for the quick response. How does the user run it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window