Solved

VB Script for Registry Modifications

Posted on 2013-01-29
6
156 Views
Last Modified: 2013-02-03
I would like a VB script that would allow me to modify the suggested registry files in this document. http://support.citrix.com/article/CTX325140 ... I can get part of it but I'm not sure how to create a script that will get multiple files with similar names. In any event, I'm interested in a script that will remove the suggested registry files mentioned in the document.

Thanks in advance.
0
Comment
Question by:jrobison
  • 3
  • 3
6 Comments
 
LVL 25

Expert Comment

by:SStory
ID: 38830892
Why not just uninstall using Revo Uninstaller. It was made to make sure registry entries and files don't get left behind.

http://download.cnet.com/Revo-Uninstaller/3000-2096_4-10687648.html

If files do get left behind, like config files and data files, which some don't uninstall as a precaution, a simple

rmdir /s <foldername>

can be executed or placed in a .bat file and executed.
0
 
LVL 25

Expert Comment

by:SStory
ID: 38830895
If not, here's how to delete a registry key with vb script.

http://technet.microsoft.com/en-us/magazine/2006.08.scriptingguy.aspx
0
 
LVL 1

Author Comment

by:jrobison
ID: 38831687
SStory .. I'm familiar with the scripting piece of it .. You could also create a reg file and use something like this [-HKEY_CLASSES_ROOT\KeyName] .. However I'm looking for something a little more sofisticated and would prefer a vb script with a few condition variables ( i.e If key exists then do this etc .. )  

Thanks for the input though.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 25

Expert Comment

by:SStory
ID: 38832109
No problem. Revo works great and takes care of all of this.

There is also the reg.exe file in system32 folder

REG delete <whatever>

I'd just try deleting it and if it isn't there it won't delete anything.

As for conditionals

You should be able to use IF THEN ELSE END IF in vbs. And the object in my second link should give you access to methods for checking key existence, etc.

Thanks
0
 
LVL 1

Accepted Solution

by:
jrobison earned 0 total points
ID: 38832154
I found exactly what I was looking for at this URL ... Did exactly what I wanted it to. Excellent reference.

http://www.gregorystrike.com/2010/05/24/vbscript-to-uninstall-old-citrix-clients/
0
 
LVL 1

Author Closing Comment

by:jrobison
ID: 38848291
The URL referenced was exactly what I needed to resolve my request.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

947 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now