?
Solved

Deleting Registry subkeys windows 7

Posted on 2011-03-03
5
Medium Priority
?
552 Views
Last Modified: 2012-05-11
Hi there,
I am making a .bat file to delete all the subkeys under the key 'ProfileList'
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /f
I want the subkey folder ProfileList exist but all the subkeys deleted
which switch I should use.
Help
0
Comment
Question by:amanzoor
[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
5 Comments
 
LVL 6

Expert Comment

by:Lordy123
ID: 35031347
/VA is the switch you're looking for I believe.
0
 
LVL 6

Expert Comment

by:Lordy123
ID: 35031365
REG DELETE KeyName [/v ValueName | /va] [/f]
0
 
LVL 4

Author Comment

by:amanzoor
ID: 35031413
No guys it asks me for name of the subkeys if I put /v.  THere are bunch of folders under ProfileList key I want to get rid of them all.
0
 
LVL 6

Accepted Solution

by:
Lordy123 earned 1000 total points
ID: 35031681
I misunderstood your question, I'm not sure you'll be able to accomplish that with a bat file, you may need to make a script.
0
 
LVL 15

Assisted Solution

by:Russell_Venable
Russell_Venable earned 1000 total points
ID: 35035881
I would make one. Just not on a computer to test logic of the script.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Suggested Courses
Course of the Month12 days, 23 hours left to enroll

777 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