?
Solved

Find then delete Registry subkey

Posted on 2012-04-01
3
Medium Priority
?
416 Views
Last Modified: 2012-04-01
experts,

ive looked around the posted threads on this and cannot find anything that i can understand/ applies to what i need. Im trying to create a simple batch file that will find a registry subkey under HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings

my company had implemented a new web filter and its loading this proxy.pac registry subkey when a new user logs into a computer. instead of opening cmd runas admin, regedit, search registry for proxy.pac then deleting it i would like to create a batch file to do it for me.

yeah i know its not much but when you have over 100 users and this proxy.pac loads itself back every few days for every user.... you see how this can become frustrating. I would take this up with our main IT HQ but they are useless and have not fixed the issue in two weeks!
0
Comment
Question by:MattLight
[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
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
vb_elmar earned 2000 total points
ID: 37792571
If you just want to delete the key, use

Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.RegDelete "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\[mySubKeyName]"
Set WSHShell = Nothing


Put the code above on temp.vbs and run it.
0
 
LVL 1

Author Comment

by:MattLight
ID: 37792577
ill check it out and post the results here in a few, gotta take care of a user first. thanks!
0
 
LVL 1

Author Comment

by:MattLight
ID: 37792858
sorry for the delayed response,

yep worked just fine! thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Introduction This question got me thinking... (http://www.experts-exchange.com/questions/28707487/GLOBALS.html) Why shouldn't we use Globals? This is a simple question without a simple answer.  How do you explain these concepts to a programmer w…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

764 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