Solved

Deleting Registry subkeys windows 7

Posted on 2011-03-03
5
545 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 250 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 250 total points
ID: 35035881
I would make one. Just not on a computer to test logic of the script.
0

Featured Post

Independent Software Vendors: 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

While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
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…

734 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