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: backup registry in command line

04 Dec 2012   #1

windows 7 home premium 64 bit
 
 
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 help would be appreciated


My System SpecsSystem Spec
.

04 Dec 2012   #2

Windows 7 Ultimate x64, XP Mode, W8.1 Preview VM - 7 Pro x64 second remote tower
 
 

You may be entering the command wrong?! A simple type error in the command will cause an immediate problem. One guide with a chart for all the commands available can be looked over at Managing the Windows XP, Vista, and Windows 7 Registry from the Command Prompt with Reg.exe

If you still don't get anywhere using the command prompt method then refer to the SF guide for simply backing up the registry noting Method Two for seeing a backup exported. Registry - Backup and Restore
My System SpecsSystem Spec
05 Dec 2012   #3

Windows 8 Core X64
 
 

The problem may be that you are trying to create the file in the Windows directory. Try a different location, like

reg export hkey_local_machine\software\microsoft\windows %userprofile%\regbackup

worked for me.

BTW: It's also a good idea to enclose both parameters in double quotes like this:

reg export "hkey_local_machine\software\microsoft\windows" "%userprofile%\regbackup"
My System SpecsSystem Spec
.


06 Dec 2012   #4

windows 7 home premium 64 bit
 
 

thanks for responding i know the command is correct because I am not getting a syntax error, I have tried creating different folders in different locations and I get the same error every time
My System SpecsSystem Spec
06 Dec 2012   #5

Windows 7 Ultimate 64 bit SP1 x64
 
 

Quote   Quote: Originally Posted by bob363 View Post
thanks for responding i know the command is correct because I am not getting a syntax error, I have tried creating different folders in different locations and I get the same error every time
Your knowledge may be incorrect - otherwise the command would work.

Perhaps your problem is that you do not have adequate authority.
If you are not allowed to create "different folders in different locations" then you are unlikely to create files.
My System SpecsSystem Spec
06 Dec 2012   #6

Windows 7 Ultimate x64, XP Mode, W8.1 Preview VM - 7 Pro x64 second remote tower
 
 

Are you logged in as adminstrator or need to elevate permissions at all? You still have the other option available by following the guide there if you continue to run into problems as far as seeing a backup made.
My System SpecsSystem Spec
07 Dec 2012   #7

Windows 8 Core X64
 
 

Did you try what I suggested?
My System SpecsSystem Spec
07 Dec 2012   #8

windows 7 home premium 64 bit
 
 

yes I posted above that I tried creating a folder in a different location and also tried using quotes but am still getting error, thanks for your help I appreciate it, I also tried running as administrator but that did not work either
My System SpecsSystem Spec
07 Dec 2012   #9

Windows 7 Ultimate x64, XP Mode, W8.1 Preview VM - 7 Pro x64 second remote tower
 
 

Have you tried following the guide at all just for having a backup? If you still have problems using a gui approach you could be looking at some other problem since this could registry related.
My System SpecsSystem Spec
08 Dec 2012   #10

Windows 8 Core X64
 
 

What happens if you try to create the file in the current directory?

reg export "hkey_local_machine\software\microsoft\windows" "regbackup"

Can you create a file from the Command Prompt at all? Try this:

echo "This is a test" > test.txt
My System SpecsSystem Spec
Reply

 backup registry in command line




Thread Tools



Similar help and support threads for2: backup registry in command line
Thread Forum
backup registry in command line Backup and Restore
add folders in indexing options using registry or command line? Performance & Maintenance
How can I set this via command-line or registry? Customization
Solved Windows Backup command line Backup and Restore
Registry Editing from Command Line General Discussion
Command line Registry Permission General Discussion
Command line image backup Backup and Restore

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 08:58 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33