• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 565
  • Last Modified:

Deleting Registry subkeys windows 7

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
amanzoor
Asked:
amanzoor
  • 3
2 Solutions
 
Lordy123Commented:
/VA is the switch you're looking for I believe.
0
 
Lordy123Commented:
REG DELETE KeyName [/v ValueName | /va] [/f]
0
 
amanzoorNetwork infrastructure AdminAuthor Commented:
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
 
Lordy123Commented:
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
 
Russell_VenableCommented:
I would make one. Just not on a computer to test logic of the script.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now