deleting reg-values on startup
Posted on 2012-03-19
We are running an archiving system on our Hosted Exchange environment within our Citrix XenApp environment (windows 2003 R2).
We have a re-occuring issue with outlook, when users are consulting Archived emails.
Outlook then failes on formularscripts
When we access the registry of the Terminal server and delete the below 2 reg-values, the problem is temporarely solved until the system (don't know why) simply puts back the 2 values.
We are looking to delete the values automatically instead of having to perform the same deleting action over and over again.
I've already created a batch file with the following commands in:
REG DELETE HKLM\Software\Microsoft\Windows\Currentversion\Installer\UserData\S-1-5-18\Products\000021209030000000\OutlookVBScript /f
REG DELETE HKCR\Installer\Features\00002109030000000000000000F01FEC\OutlookVBScript /f
The batch file succesfully deletes the first value, but the second one does not seem to work.
This is the result i'm getting after the second key (although i'm a 100% sure this value exists)
C:\>REG DELETE HKCR\Installer\Features\00002109030000000000000000F01FEC\OutlookV
Permanently delete the registry key HKEY_CLASSES_ROOT\Installer\Features\0000210
9030000000000000000F01FEC\OutlookVBScript (Yes/No)? y
ERROR: The system was unable to find the specified registry key or value.
So now i have 2 questions:
1) What can i do, to get this value deleted, without having to go into the registry myself?
2) How can I run the patch file at startup, without having to log into the system as administator? Can this be done with a scheduled task?
Please advise asap.