| 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 Specs |
| OS windows 7 home premium 64 bit |
04 Dec 2012
|
#2 | | Windows 7 Ultimate x64, XP Mode, W8 RP VM, Linux Mint Debian 2nd OS HD- 7 Pro x64 second case New England |
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 Specs | | OS Windows 7 Ultimate x64, XP Mode, W8 RP VM, Linux Mint Debian 2nd OS HD- 7 Pro x64 second case CPU AMD Phenom II X4 975 Deneb 3.6ghz - 965 on new mini tower Motherboard Gigabyte GA-790XTA-UD4 Memory Kingston Hyper X DDR3 1600 1.5v 16gb - Mushkin on 2nd build Graphics Card MSI HD Radeon 5750 1gb - MSI HD Radeon 6450 on mini tower Sound Card Creative Labs X-Fi XtremeGamer - Realtek onooard 2nd case Monitor(s) Displays 2 x Acer P191W 19" widesscreen - HP 20" widescreen mini towe Screen Resolution 1440x900 native - 1600x1024 on 7 Pro x64 build Keyboard Microsoft Recusa Razor - MS Comfort 3000 on second build Mouse MS Trackball Explorer - A4TECH dual scroll wheel trackball PSU Corsair 750TX - primary / Corsair CX600 - second Case Antec 900-2 - SSD compatible / NZXT Vulcan mini tower Cooling Zalman CNPS9900A Hard Drives Primary Ultimate x64 build-
WD Black Edition 1tb Sata 6.0 = 2
WD Black Edition 1tb Sata 3.0 = 2 (OS drives)
WD 1tb Green Power sata = 2 1 external
usb flash drives = 18
Second 7 Pro x64 mini tower-
WD Caviar SE 500gb sata II single drive presen Internet Speed 30mbps upgrade - primary hard wired - mini tower usb WiFi |
05 Dec 2012
|
#3 | | Windows 7 Pro X64 Space Coast of Florida |
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 Specs | | System Manufacturer/Model Number Dell Precision 370 OS Windows 7 Pro X64 CPU Intel Pentium 4 Dual LP 3.4Ghz Memory 4GB DDR PC2-5200 ECC Graphics Card NVIDIA Quadro FX 3400/4400 Sound Card SoundMAX Integrated Digital Audio Monitor(s) Displays HP 22" w2207 LCD Screen Resolution 1680 x 1050 Hard Drives 300GB Maxtor 6L300RD PATA
128GB Kingston SV200S3128G SSD (boot)
1.5TB Seagate ST3150041AS SATA Internet Speed Cable via Road Runner 2MB Upload, 20MB Download |
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 Specs | | OS windows 7 home premium 64 bit |
06 Dec 2012
|
#5 | | Windows 7 Ultimate 64 bit SP1 x64 |

Quote: Originally Posted by bob363 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 Specs | | System Manufacturer/Model Number ASUSTeK Computer INC. M3A32-MVP DELUXE (CPU 1) OS Windows 7 Ultimate 64 bit SP1 x64 CPU AMD Phenom X4 9500 Motherboard ASUSTeK M3A32-MVP Deluxe (CPU 1) Memory 8 GB Graphics Card ATI Radeon HD 4600 Series Sound Card AMD High Definition Audio Device Monitor(s) Displays SyncMaster (1680x1050@60Hz) Hard Drives 59GB OCZ-VERTEX2 ATA Device
+
977GB SAMSUNG HD103SJ ATA Device
+
625GB WDC WD6401AALS-00L3B2 ATA Device |
06 Dec 2012
|
#6 | | Windows 7 Ultimate x64, XP Mode, W8 RP VM, Linux Mint Debian 2nd OS HD- 7 Pro x64 second case New England |
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 Specs | | OS Windows 7 Ultimate x64, XP Mode, W8 RP VM, Linux Mint Debian 2nd OS HD- 7 Pro x64 second case CPU AMD Phenom II X4 975 Deneb 3.6ghz - 965 on new mini tower Motherboard Gigabyte GA-790XTA-UD4 Memory Kingston Hyper X DDR3 1600 1.5v 16gb - Mushkin on 2nd build Graphics Card MSI HD Radeon 5750 1gb - MSI HD Radeon 6450 on mini tower Sound Card Creative Labs X-Fi XtremeGamer - Realtek onooard 2nd case Monitor(s) Displays 2 x Acer P191W 19" widesscreen - HP 20" widescreen mini towe Screen Resolution 1440x900 native - 1600x1024 on 7 Pro x64 build Keyboard Microsoft Recusa Razor - MS Comfort 3000 on second build Mouse MS Trackball Explorer - A4TECH dual scroll wheel trackball PSU Corsair 750TX - primary / Corsair CX600 - second Case Antec 900-2 - SSD compatible / NZXT Vulcan mini tower Cooling Zalman CNPS9900A Hard Drives Primary Ultimate x64 build-
WD Black Edition 1tb Sata 6.0 = 2
WD Black Edition 1tb Sata 3.0 = 2 (OS drives)
WD 1tb Green Power sata = 2 1 external
usb flash drives = 18
Second 7 Pro x64 mini tower-
WD Caviar SE 500gb sata II single drive presen Internet Speed 30mbps upgrade - primary hard wired - mini tower usb WiFi |
07 Dec 2012
|
#7 | | Windows 7 Pro X64 Space Coast of Florida |
Did you try what I suggested? | My System Specs | | System Manufacturer/Model Number Dell Precision 370 OS Windows 7 Pro X64 CPU Intel Pentium 4 Dual LP 3.4Ghz Memory 4GB DDR PC2-5200 ECC Graphics Card NVIDIA Quadro FX 3400/4400 Sound Card SoundMAX Integrated Digital Audio Monitor(s) Displays HP 22" w2207 LCD Screen Resolution 1680 x 1050 Hard Drives 300GB Maxtor 6L300RD PATA
128GB Kingston SV200S3128G SSD (boot)
1.5TB Seagate ST3150041AS SATA Internet Speed Cable via Road Runner 2MB Upload, 20MB Download |
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 Specs | | OS windows 7 home premium 64 bit |
07 Dec 2012
|
#9 | | Windows 7 Ultimate x64, XP Mode, W8 RP VM, Linux Mint Debian 2nd OS HD- 7 Pro x64 second case New England |
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 Specs | | OS Windows 7 Ultimate x64, XP Mode, W8 RP VM, Linux Mint Debian 2nd OS HD- 7 Pro x64 second case CPU AMD Phenom II X4 975 Deneb 3.6ghz - 965 on new mini tower Motherboard Gigabyte GA-790XTA-UD4 Memory Kingston Hyper X DDR3 1600 1.5v 16gb - Mushkin on 2nd build Graphics Card MSI HD Radeon 5750 1gb - MSI HD Radeon 6450 on mini tower Sound Card Creative Labs X-Fi XtremeGamer - Realtek onooard 2nd case Monitor(s) Displays 2 x Acer P191W 19" widesscreen - HP 20" widescreen mini towe Screen Resolution 1440x900 native - 1600x1024 on 7 Pro x64 build Keyboard Microsoft Recusa Razor - MS Comfort 3000 on second build Mouse MS Trackball Explorer - A4TECH dual scroll wheel trackball PSU Corsair 750TX - primary / Corsair CX600 - second Case Antec 900-2 - SSD compatible / NZXT Vulcan mini tower Cooling Zalman CNPS9900A Hard Drives Primary Ultimate x64 build-
WD Black Edition 1tb Sata 6.0 = 2
WD Black Edition 1tb Sata 3.0 = 2 (OS drives)
WD 1tb Green Power sata = 2 1 external
usb flash drives = 18
Second 7 Pro x64 mini tower-
WD Caviar SE 500gb sata II single drive presen Internet Speed 30mbps upgrade - primary hard wired - mini tower usb WiFi |
08 Dec 2012
|
#10 | | Windows 7 Pro X64 Space Coast of Florida |
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 Specs | | System Manufacturer/Model Number Dell Precision 370 OS Windows 7 Pro X64 CPU Intel Pentium 4 Dual LP 3.4Ghz Memory 4GB DDR PC2-5200 ECC Graphics Card NVIDIA Quadro FX 3400/4400 Sound Card SoundMAX Integrated Digital Audio Monitor(s) Displays HP 22" w2207 LCD Screen Resolution 1680 x 1050 Hard Drives 300GB Maxtor 6L300RD PATA
128GB Kingston SV200S3128G SSD (boot)
1.5TB Seagate ST3150041AS SATA Internet Speed Cable via Road Runner 2MB Upload, 20MB Download backup registry in command line problems? All times are GMT -5. The time now is 07:28 PM. | |