How can I export entire Win 7 registry via cmd.exe?

user0x12

New member
Local time
1:23 PM
Messages
15
Hello,

I know that via cmd.exe "reg export" can export individual root and sub keys to folder locations as files, but how can I export the entire registry through this method? I know it can be done through GUI via regedit.exe by clicking export.

Thanks.
 

My Computer My Computer

At a glance

Windows 7 64-bit
Computer type
PC/Desktop
OS
Windows 7 64-bit
To transparently export the registry to a text file, click Start, in the search box, copy and paste regedit /e c:\output.txt , and then click OK.
File named output will be created on C drive
You're done, see attached pdf
Save that in a safe place and rename it as you wish.
Be carefule if you plan on messing with your registry!!!!!!
 
Last edited:

My Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...AMD FX(tm)-6100 Six-Core Processor4.00 GBAMD Radeon HD 6450
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6100 Six-Core Processor
Motherboard
ASUSTeK Computer INC. M5A78L-M LX PLUS
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6450
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Toshiba 47ZV650U 47" LCD 240Hz
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) HDT722516DLA380 ATA Device (2) Hitachi HDS721025CLA382 ATA Device (3) ST4000VN000-1H4168 ATA Device (4) Generic STORAGE DEVICE USB Device (5) Generic STORAGE DEVICE USB Device (6) Generic STORAGE DEVICE USB Device (7) Generic STORAGE
PSU
Corsair CX430M
Case
WMI (Waste Management Incorporated)
Cooling
Yes, it's very cool.
Keyboard
Bluetooth KB & Mousepad
Internet Speed
Fios 15/5 and it sucks when Verizon is throttling it down
Antivirus
Avast, MSE and Malwarebytes
Browser
Firefox v.41.0.2 and IE 11
Other Info
2 years old and so far this rig still kicks butt
...how can I export the entire registry...

To transparently export the registry to a text file, click Start, in the search box, copy and paste regedit /e c:\output.txt , and then click OK....
But that will not export the entire registry.

Open the output and you will probably see nothing under [HKEY_LOCAL_MACHINE\SAM]

There are many area that are not available to a user. Even an admin user. If you want to export the SAM key, your command prompt needs to be running with System credentials.

And there are hives that the registry does not normally open... like the user hive for those not currently logged on.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit

My Computer My Computer

At a glance

Windows 10 Pro. 64/ version 1709 Windows 7 Pr...Intel i7-6800K @ 4.3Corsair Platinum 16 gig @2400EVGA GTX 1070 OC
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Well All, the output file has been in the analyzing mode for 10 minutes using Word with unicode format. It is 440mb way too big for notepad. I'll post again later, I'm hungry
 

My Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...AMD FX(tm)-6100 Six-Core Processor4.00 GBAMD Radeon HD 6450
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6100 Six-Core Processor
Motherboard
ASUSTeK Computer INC. M5A78L-M LX PLUS
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6450
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Toshiba 47ZV650U 47" LCD 240Hz
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) HDT722516DLA380 ATA Device (2) Hitachi HDS721025CLA382 ATA Device (3) ST4000VN000-1H4168 ATA Device (4) Generic STORAGE DEVICE USB Device (5) Generic STORAGE DEVICE USB Device (6) Generic STORAGE DEVICE USB Device (7) Generic STORAGE
PSU
Corsair CX430M
Case
WMI (Waste Management Incorporated)
Cooling
Yes, it's very cool.
Keyboard
Bluetooth KB & Mousepad
Internet Speed
Fios 15/5 and it sucks when Verizon is throttling it down
Antivirus
Avast, MSE and Malwarebytes
Browser
Firefox v.41.0.2 and IE 11
Other Info
2 years old and so far this rig still kicks butt
I use Registry Backup from Tweaking.com. This FAQ
convinced me. It uses Volume Shadow Copy to back up the entire registry even though it is in use. It is simple to use. The backup may take anywhere from 1 to 1 1/2 minutes since it takes awhile for the VSS service to make a snapshot.

I don't think there's any other way to get the whole shooting match without manually just copying all the registry hives. Easy to make a mistake especially if you are a bit up tight because your system has gone weird.
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Hey All, I am unable to get my word app to successfully open this 440mb file. I have racked my brain non-stop searching ms bulletins and forums. Tried running compatibility mode for XP and vista, no luck. Anyway, I need to spend some time on the phone with a mortgage loan processor and must prioritize that right now. I'll try this on my old xp machine later.
 

My Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...AMD FX(tm)-6100 Six-Core Processor4.00 GBAMD Radeon HD 6450
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6100 Six-Core Processor
Motherboard
ASUSTeK Computer INC. M5A78L-M LX PLUS
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6450
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Toshiba 47ZV650U 47" LCD 240Hz
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) HDT722516DLA380 ATA Device (2) Hitachi HDS721025CLA382 ATA Device (3) ST4000VN000-1H4168 ATA Device (4) Generic STORAGE DEVICE USB Device (5) Generic STORAGE DEVICE USB Device (6) Generic STORAGE DEVICE USB Device (7) Generic STORAGE
PSU
Corsair CX430M
Case
WMI (Waste Management Incorporated)
Cooling
Yes, it's very cool.
Keyboard
Bluetooth KB & Mousepad
Internet Speed
Fios 15/5 and it sucks when Verizon is throttling it down
Antivirus
Avast, MSE and Malwarebytes
Browser
Firefox v.41.0.2 and IE 11
Other Info
2 years old and so far this rig still kicks butt
Well folks it is true, HKEY_LOCAL_MACHINE\SAM is there but empty.
I did find this http://superuser.com/questions/614165/command-prompt-as-system-user-windows-7
I don't have time to play now, it only took what 2 hours for word to analyze and populate 3.3 million words and it reached the limit for number of pages at 32,524. I won't be doing that again unless it's for me. I thought rendering video edits was a bitch, this sucks.
MilesAhead, I doubt that ERUNT program will accomplish this feat, but I may be entirely wrong.

user0x12, what on earth are you trying to do?
 
Last edited:

My Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...AMD FX(tm)-6100 Six-Core Processor4.00 GBAMD Radeon HD 6450
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6100 Six-Core Processor
Motherboard
ASUSTeK Computer INC. M5A78L-M LX PLUS
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6450
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Toshiba 47ZV650U 47" LCD 240Hz
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) HDT722516DLA380 ATA Device (2) Hitachi HDS721025CLA382 ATA Device (3) ST4000VN000-1H4168 ATA Device (4) Generic STORAGE DEVICE USB Device (5) Generic STORAGE DEVICE USB Device (6) Generic STORAGE DEVICE USB Device (7) Generic STORAGE
PSU
Corsair CX430M
Case
WMI (Waste Management Incorporated)
Cooling
Yes, it's very cool.
Keyboard
Bluetooth KB & Mousepad
Internet Speed
Fios 15/5 and it sucks when Verizon is throttling it down
Antivirus
Avast, MSE and Malwarebytes
Browser
Firefox v.41.0.2 and IE 11
Other Info
2 years old and so far this rig still kicks butt
Notepad should have been able to handle opening it.

Mine was the "326" copy file that you see below.

I made that larger ("980") via copy/paste/save...
...then closed notepad and opened the "980" file via double-click.

notepad.PNG


I tested with cmd running as System before making my first post to this thread. It does get the SAM keys, but it will miss others.

No one has offered a method using the app that the OP suggested; but I doubt that it can be done. Better ways to backup the entire registry have already been posted. Let's see what the OP's end goal is before spending much more time on this.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Notepad should have been able to handle opening it.

Mine was the "326" copy file that you see below.

I made that larger ("980") via copy/paste/save...
...then closed notepad and opened the "980" file via double-click.

View attachment 372349


I tested with cmd running as System before making my first post to this thread. It does get the SAM keys, but it will miss others.

No one has offered a method using the app that the OP suggested; but I doubt that it can be done. Better ways to backup the entire registry have already been posted. Let's see what the OP's end goal is before spending much more time on this.


Well Laddy da da! Just Kidding You got lucky and I need to change the max page # allowed in both apps and figure out how to speed up the analyzing process. Any thoughts? I know more ram and ssd are in the shopping list but I aint spending money while it does not pay me back.
 

My Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...AMD FX(tm)-6100 Six-Core Processor4.00 GBAMD Radeon HD 6450
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6100 Six-Core Processor
Motherboard
ASUSTeK Computer INC. M5A78L-M LX PLUS
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6450
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Toshiba 47ZV650U 47" LCD 240Hz
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) HDT722516DLA380 ATA Device (2) Hitachi HDS721025CLA382 ATA Device (3) ST4000VN000-1H4168 ATA Device (4) Generic STORAGE DEVICE USB Device (5) Generic STORAGE DEVICE USB Device (6) Generic STORAGE DEVICE USB Device (7) Generic STORAGE
PSU
Corsair CX430M
Case
WMI (Waste Management Incorporated)
Cooling
Yes, it's very cool.
Keyboard
Bluetooth KB & Mousepad
Internet Speed
Fios 15/5 and it sucks when Verizon is throttling it down
Antivirus
Avast, MSE and Malwarebytes
Browser
Firefox v.41.0.2 and IE 11
Other Info
2 years old and so far this rig still kicks butt
An SSD will cause the most speed increase for notepad. Notepad does not paginate, so no need to change any settings. Deselecting Word Wrap should help. Having more than 4GB of RAM probably won't change anything for this particular task.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
An SSD will cause the most speed increase for notepad. Notepad does not paginate, so no need to change any settings. Deselecting Word Wrap should help. Having more than 4GB of RAM probably won't change anything for this particular task.
Thanks for the feedbak UsernameIssues
 

My Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...AMD FX(tm)-6100 Six-Core Processor4.00 GBAMD Radeon HD 6450
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6100 Six-Core Processor
Motherboard
ASUSTeK Computer INC. M5A78L-M LX PLUS
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6450
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Toshiba 47ZV650U 47" LCD 240Hz
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) HDT722516DLA380 ATA Device (2) Hitachi HDS721025CLA382 ATA Device (3) ST4000VN000-1H4168 ATA Device (4) Generic STORAGE DEVICE USB Device (5) Generic STORAGE DEVICE USB Device (6) Generic STORAGE DEVICE USB Device (7) Generic STORAGE
PSU
Corsair CX430M
Case
WMI (Waste Management Incorporated)
Cooling
Yes, it's very cool.
Keyboard
Bluetooth KB & Mousepad
Internet Speed
Fios 15/5 and it sucks when Verizon is throttling it down
Antivirus
Avast, MSE and Malwarebytes
Browser
Firefox v.41.0.2 and IE 11
Other Info
2 years old and so far this rig still kicks butt
Back
Top