Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

deleting reg-values on startup

Posted on 2012-03-19
6
Medium Priority
?
538 Views
Last Modified: 2012-10-03
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\Windows\Currentversion\Installer\UserData\S-1-5-18\Products\000021209030000000\OutlookVBScript

HKCR\Installer\Features\00002109030000000000000000F01FEC\OutlookVBScript

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
BScript
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.
Kind regards,
Bert
0
Comment
Question by:saphico
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 9

Expert Comment

by:Ashok Dewan
ID: 37736904
First if you want to run patch file at startup. Simply put a batch file into startup folder.
C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Note: you can replace the user name instead of administrator which daily logon to that pc.
or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
create REG_SZ String
with cmd /k c:\filename.bat or cmd /c c:\filename.bat
0
 
LVL 5

Expert Comment

by:2Cs
ID: 37736939
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.
0
 

Author Comment

by:saphico
ID: 37738136
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?
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 5

Expert Comment

by:2Cs
ID: 37738167
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?
0
 

Accepted Solution

by:
saphico earned 0 total points
ID: 37738493
Ok, that seems a good solution, but now i still need to find a solution for the second reg key....
0
 

Author Closing Comment

by:saphico
ID: 38457976
it solved the problem
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question