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

x
?
Solved

Find then delete Registry subkey

Posted on 2012-04-01
3
Medium Priority
?
421 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Introduction Many of the most common information processing tasks require sorting data sets.  For example, you may want to find the largest or smallest value in a collection.  Or you may want to order the data set in numeric or alphabetical order. …
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

610 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