saphico
asked on
deleting reg-values on startup
Hello,
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.
HKLM\Software\Microsoft\Wi ndows\Curr entversion \Installer \UserData\ S-1-5-18\P roducts\00 0021209030 000000\Out lookVBScri pt
HKCR\Installer\Features\00 0021090300 0000000000 0000F01FEC \OutlookVB Script
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\Wi ndows\Curr entversion \Installer \UserData\ S-1-5-18\P roducts\00 0021209030 000000\Out lookVBScri pt /f
REG DELETE HKCR\Installer\Features\00 0021090300 0000000000 0000F01FEC \OutlookVB Script /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\00 0021090300 0000000000 0000F01FEC \OutlookV
BScript
Permanently delete the registry key HKEY_CLASSES_ROOT\Installe r\Features \0000210
9030000000000000000F01FEC\ OutlookVBS cript (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.
Kind regards,
Bert
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.
HKLM\Software\Microsoft\Wi
HKCR\Installer\Features\00
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\Wi
REG DELETE HKCR\Installer\Features\00
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\00
BScript
Permanently delete the registry key HKEY_CLASSES_ROOT\Installe
9030000000000000000F01FEC\
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.
Kind regards,
Bert
Or you can use group policy to remove the registry key, much more reliable and would work for all users that log onto the machine.
ASKER
I'm not going to log in to the system, so putting it in the startup folder is not a solution.
I'm not used to using group policy's so i would rather not use that either. is their another solution?
do you have a solution to the failing deletion as well?
I'm not used to using group policy's so i would rather not use that either. is their another solution?
do you have a solution to the failing deletion as well?
Why not create a scheduled task to call the above batch file that runs at start-up/logon/etc. and create a local user account for it to run under?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it solved the problem
C:\Users\Administrator\App
Note: you can replace the user name instead of administrator which daily logon to that pc.
or
HKEY_LOCAL_MACHINE\SOFTWAR
create REG_SZ String
with cmd /k c:\filename.bat or cmd /c c:\filename.bat