Registry Editing from Command Line

Devux

The Polar Bear
Power User
Local time
10:14 PM
Messages
272
Location
Las Vegas
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 Computer

Computer Manufacturer/Model Number
Acer Aspire TimelineX AS4820T-6645
OS
Windows 7 Home Premium 64bit
CPU
Intel Core i3 380M(2.53GHz)
Memory
4GB DDR3 1066
Graphics Card(s)
Intel HD Graphics 128MB VRAM
Screen Resolution
1366x768
Hard Drives
640GB 5400RPM SATA
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 Computer

Computer Manufacturer/Model Number
Insane hobo technologies. ;-)
OS
Windows 7 x64
CPU
Intel i7 2600k
Motherboard
Asrock z68 extreme 4 gen 3
Memory
G.skill Ripjaw 16gigs @ 1866
Graphics Card(s)
Nvidia gtx580 (evga)
Sound Card
Integrated HD audio + hdmi
Monitor(s) Displays
24" ASUS widescreen + 42" insignia
Screen Resolution
1080p (1920x1080)
Hard Drives
128 Samsung 830
256 Samsung 840
3 x 1tb storage drive (various)
1 western digital 1tb (eSATA)
1 Seagate 1tb (eSATA)
PSU
1 kilowatt SLI/Crossfire rated Silverstone modular
Case
NZXT Phantom + additional 220 fan
Cooling
Zalmann
Keyboard
Microsoft wireless 3000 (v2)
Mouse
MS - wireless 5000 (bluetrack)
Internet Speed
depends on if you ask me or my provider.
Other Info
The above information is provided as is, and the author assumes no responsibility for issues it may cause with your sanity or fanboyism.

My Computer

OS
Win7U 64 RTM
CPU
Q9550
Motherboard
GA-EP45-UD3R
Memory
8GB Gskill
Graphics Card(s)
ASUS|EAH4850/HTDI/1GD3/A
Sound Card
xfi Plat
Monitor(s) Displays
Dell 2405fpw
Screen Resolution
1920x1200
Hard Drives
Seagate & WD sata Drives
PSU
Antec
Case
Antec
Keyboard
MS Natural Ergonomic 4000
Mouse
Logitech MX610 USB Cordless
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. :confused: 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 Computer

Computer Manufacturer/Model Number
Acer Aspire TimelineX AS4820T-6645
OS
Windows 7 Home Premium 64bit
CPU
Intel Core i3 380M(2.53GHz)
Memory
4GB DDR3 1066
Graphics Card(s)
Intel HD Graphics 128MB VRAM
Screen Resolution
1366x768
Hard Drives
640GB 5400RPM SATA

My Computer

Computer Manufacturer/Model Number
Acer Aspire TimelineX AS4820T-6645
OS
Windows 7 Home Premium 64bit
CPU
Intel Core i3 380M(2.53GHz)
Memory
4GB DDR3 1066
Graphics Card(s)
Intel HD Graphics 128MB VRAM
Screen Resolution
1366x768
Hard Drives
640GB 5400RPM SATA
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 Computer

Computer Manufacturer/Model Number
Insane hobo technologies. ;-)
OS
Windows 7 x64
CPU
Intel i7 2600k
Motherboard
Asrock z68 extreme 4 gen 3
Memory
G.skill Ripjaw 16gigs @ 1866
Graphics Card(s)
Nvidia gtx580 (evga)
Sound Card
Integrated HD audio + hdmi
Monitor(s) Displays
24" ASUS widescreen + 42" insignia
Screen Resolution
1080p (1920x1080)
Hard Drives
128 Samsung 830
256 Samsung 840
3 x 1tb storage drive (various)
1 western digital 1tb (eSATA)
1 Seagate 1tb (eSATA)
PSU
1 kilowatt SLI/Crossfire rated Silverstone modular
Case
NZXT Phantom + additional 220 fan
Cooling
Zalmann
Keyboard
Microsoft wireless 3000 (v2)
Mouse
MS - wireless 5000 (bluetrack)
Internet Speed
depends on if you ask me or my provider.
Other Info
The above information is provided as is, and the author assumes no responsibility for issues it may cause with your sanity or fanboyism.

My Computer

OS
Win7U 64 RTM
CPU
Q9550
Motherboard
GA-EP45-UD3R
Memory
8GB Gskill
Graphics Card(s)
ASUS|EAH4850/HTDI/1GD3/A
Sound Card
xfi Plat
Monitor(s) Displays
Dell 2405fpw
Screen Resolution
1920x1200
Hard Drives
Seagate & WD sata Drives
PSU
Antec
Case
Antec
Keyboard
MS Natural Ergonomic 4000
Mouse
Logitech MX610 USB Cordless
Back
Top