Solved

Deleting Registry subkeys windows 7

Posted on 2011-03-03
5
538 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
  • 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
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…

809 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