Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Registry Editing from Command Line

21 Jun 2011   #1
Devux

Windows 7 Home Premium 64bit
 
 
Registry Editing from Command Line

So I am trying to delete some keys from the registry using command line, eventually I am going to turn it into a batch file because it is something I may have to do frequently. Basically I want to delete a folder full of registry keys without having to list every key individually. Anyone have an idea how to do this?


My System SpecsSystem Spec
.
21 Jun 2011   #2
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

I don't know of a way to do whole entries at once using reg.exe


You could however just create a .reg file that would blank them all in one click
You'd have to learn the .reg file lingo though.
My System SpecsSystem Spec
21 Jun 2011   #3
James Colbert

 
 

This might give you something to start with:

How To Delete And Add Registry Keys From The Command Line

The required syntax seems pretty simple, then just create a batch file.

And here's another link that may provide additional info:

http://commandwindows.com/reg.htm

James
My System SpecsSystem Spec
.

21 Jun 2011   #4
Devux

Windows 7 Home Premium 64bit
 
 

Quote   Quote: Originally Posted by James Colbert View Post
This might give you something to start with:

How To Delete And Add Registry Keys From The Command Line

The required syntax seems pretty simple, then just create a batch file.

And here's another link that may provide additional info:

Managing the Windows Registry from the Command Prompt with Reg.exe

James
Yeah I read both those articles neither of them provide the deletion of folders containing keys. I was just trying to make something that would fix an end user issue with a simple double-click, job security if I have to keep resetting their settings I guess though.
My System SpecsSystem Spec
21 Jun 2011   #5
Devux

Windows 7 Home Premium 64bit
 
 

Alright, found a way to accomplish what I wanted to do, its not a batch file, but it is a .reg file that should be able to be used on any computer with the software installed. Here is the link I used as reference for anyone else looking to do something similar.
How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file
My System SpecsSystem Spec
21 Jun 2011   #6
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

Quote   Quote: Originally Posted by Maguscreed View Post
I don't know of a way to do whole entries at once using reg.exe


You could however just create a .reg file that would blank them all in one click
You'd have to learn the .reg file lingo though.

...yeah I kind of figured that would be your solution
My System SpecsSystem Spec
21 Jun 2011   #7
James Colbert

 
 

Quote   Quote: Originally Posted by Devux View Post
Alright, found a way to accomplish what I wanted to do, its not a batch file, but it is a .reg file that should be able to be used on any computer with the software installed. Here is the link I used as reference for anyone else looking to do something similar.
How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file
Thanks for posting your solution.
My System SpecsSystem Spec
Reply

 Registry Editing from Command Line




Thread Tools




Similar help and support threads
Thread Forum
Command Prompt of the DVD and editing the system registry
Hi If I perform the boot from the DVD of Windows 7 Ultimate SP1 64 bit and then I open the Command Prompt, I can run a bat file containing some reg commands to edit the system registry of Windows 7 SP1? If not, how do I edit the system registry from the Windows 7 DVD? Thanks Bye
General Discussion
backup registry in command line
Hello I am trying to back up a registry key, I am using the command >reg export hkey_local_machine\software\microsoft\windows c:\windows\regbackup and I keep getting the error message Unable to write to the file. There may be a disk or file system error. Not sure what I am doing wrong, any ...
Backup and Restore
Registry : How to add extension keys through command line
I am looking for some help: I wish to add a new extension key of type .dns If I execute : reg add HKEY_CLASSES_ROOT\.dns Then the key .dns does not get added to HKEY_CLASSES_ROOT but somewhere in HKEY_CURRENT_USER ? How do I get the command to add the .dns key to HKEY_CLASSES_ROOT ?...
General Discussion
add folders in indexing options using registry or command line?
Hello, I'm trying to add folders in the indexing options by using either registry or command lines. This is for an unattended silent install. Any ideas ? Thanks.
Performance & Maintenance
How can I set this via command-line or registry?
How can I set this via command-line or registry? I need a way to automatically launch "Explorer c:\folder\myfolder" with a view appropriate for long filenames on any Windows Vista/Win7 PC.
Customization
Command line Registry Permission
I found a lot of articles on how to gain full control over a registry key but nothing worked for me. So guys can you help Me?
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:17.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App