Windows 7 Installation - Transfer to a New Computer

How to Transfer your Complete Windows 7 Installation to New Computer

To start, a warning from Microsoft:

   Note
Important

You must use the Sysprep /generalize command to generalize a complete Windows installation before you can use the installation for deployment to a new computer, whether you use imaging, hard disk duplication, or another method. Moving or copying a Windows image to a different computer without running the Sysprep /generalize command is not supported.

This tutorial will show you how to do the transfer.

   Information
Windows 7 System Preparation Tool is a powerful, native Windows tool. When for instance used in so called Audit Mode, it let's you to freely configure Windows 7 to be then deployed to other computers as hardware independent image.

In this tutorial we use System Preparation Tool (sysprep) to prepare your Windows 7 installation to be moved to a new computer, keeping all your installed applications, program settings and user profiles. You can use this method for instance when you have bought a new PC and want to transfer your existing setup completely, without need to reinstall everything, or when you want to make major hardware changes like change the motherboard or GPU, which would usually cause Windows to stop booting normally.

   Warning
Using this method causes Windows 7 to lose all activation information, and it needs to be reactivated afterwards. If your Windows 7 is an OEM version, you might not be able to reactivate it, at least not without phone activation option.

I do not recommend to use this method on RAID systems. All experiments on RAID I know have failed.

With the speed of today's hardware evolution, most of us geeks are upgrading the hardware more often than operating system. Upgrading hardware can be painfully slow process if we need to reinstall the operating system and all our installed applications, plus transfer program settings and user profiles.

Using sysprep makes this easy. Changing the motherboard, or for instance an old ATI GPU to a new nVidia GPU quite often causes Windows 7 not to be able to boot anymore. This fact is usually accepted by the user, who then reinstalls the OS and all applications and transfers user profiles from a backup location.

Same thing when buying a new computer with completely different hardware setup compared to the old one, or trying to restore a system image to different hardware setup. Normally this would include a complete reinstallation of Windows 7 and all applications.

Why not use sysprep to avoid reinstalling? Here are the different scenarios where you can use it.


   Warning

An upgraded Windows cannot be sysprepped. As this method is based in sysprepping, this tutorial is valid only for Windows setups which have not been upgraded.

This means that if you have for instance in-place upgraded Vista to Seven, or using Anytime Upgrade upgraded for instance a Home Premium to Ultimate, you cannot sysprep and this tutorial cannot be used in your case.

Notice that a repair install is also an upgrade install, so if you have ever done a repair install (= in-place upgrade to same edition), you cannot sysprep.


PLEASE DO NOT FORGET TO CREATE A SYSTEM IMAGE BEFORE PROCEEDING!​


As you can read on this thread, on rare occasions this method does not work. If this happens, you can always restore your system using your backup image.

Backup Complete Computer - Create an Image Backup
System Image Recovery

IE10 Users: Please read this article first: Sysprep Fatal Error With IE 10 (FIX) | System Administration




METHOD ONE

Changing hardware components but keeping old hard disk(s)


Use this method if you:
- Change other hardware components but keep your old HD containing Windows 7
- Move the HD containing Windows 7 to another computer
  1. Before installing new hardware, boot Windows 7 normally
  2. Disconnect all external hardware except mouse, keyboard and main display. If your system folders are located only on C: drive, disconnect all other hard disks except that containing the C:. In case of relocated system folders, for instance the profile folder Users located in another drive and other system folders on C:, first move the relocated system folders back to C: then disconnect all other drives. Reboot after this
  3. Run Command Prompt as administrator
    .
    Audit_1.png
    .
  4. Type to Command Prompt: %windir%\System32\Sysprep\Sysprep.exe, and hit Enter
    .
    sysprep_start.png
    .
  5. In sysprep dialog that opens, choose System Cleanup Action as Enter System Out-of-Box-Experience (OOBE), select Generalize, select Shutdown Options Shutdown. Click OK
    .
    Sysprep_Run_and_generalize.png
    .
  6. Sysprep generalizes now your Windows 7 setup and shuts down your computer. Do not run any other programs during this phase!
    .
    Sysprep_Run_and_generalize_2.png
    .
    Sysprep_Run_and_generalize_3.png
    .
  7. Switch the main power of your PC off and install the new hardware OR dismount the hard disk(s) and mount it (them) to a new computer
  8. Boot the PC from sysprep generalized hard disk. You will notice Windows booting as if it was the first boot after installation, installing default drivers and updating registry. One or two reboots are needed, depending on your system specifications
    .
    Sysprep_Reinstalling_devices.png
    .
    Sysprep_Registry_settings.png
    .
    Sysprep_Reboot_needed.png
    .
  9. When Windows finally boots up, you will need to enter all information as if this really was a new, fresh installation
    .
    Sysprep_First_boot_2.png
    .
  10. Because your old user profiles already exist, Windows does not accept your normal username, but instead you have to create a new temporary user. I use username Test for this purpose
    .
    Sysprep_First_boot_3.png
    .
  11. When login screen appears, choose your old user account to login
    .
    Sysprep_First_boot_5.png
    .
  12. Windows boots now to default OOBE first boot desktop, with default 800*600 resolution and default theme. All your installed applications are there, as well as your old user profiles and folders. Windows has installed the default drivers for your setup, you can update them if needed
    .
    Sysprep_First_boot_6.png
    .
  13. Go to Control Panel > User Accounts and delete the temporary user account (in this case Test) that you just created



METHOD TWO

Change the hard disk(s) or move Windows 7 setup to a new computer using third party imaging software

Use this method if you:
- Replace the HD containing Windows 7 on your old computer
- Move Windows 7 to a new HD on another computer
  1. Follow steps 1 through 5 above (method 1)
  2. Boot PC with an imaging CD/DVD (Paragon, Macrium etc.). See Macrium Reflect Free:at our sister site TenForums.com: Backup and Restore with Macrium Reflect Windows 10 Backup Restore Tutorials . Also see this post for a practical tip to create a Macrium system image.
  3. Create an image of your system
  4. Turn PC off, change the hard disk(s) and reboot with imaging application, restoring the image OR boot the new computer with imaging software and restore the image
  5. Continue from step 7 above (method 1)

This procedure is failsafe, and works every time. There is nothing to worry, but of course it is recommended to make a backup before trying this. I have even used this method when some serious driver issues caused the PC to constantly crash (BSOD), to reset all drivers to Windows defaults and then reinstalling them one by one to find the culprit.

   Note
What does Sysprep generalizing do to my Windows 7 setup?
  • All system specific information is removed or uninstalled
  • Security ID (SID) of your hardware setup is reseted
  • All system restore points are deleted
  • All event logs are deleted
  • All personalization is removed (taskbar, toolbars, folder options, start orb etc.)
  • Built-in administrator account is disabled (if it was enabled) and needs to be re-enabled after the transfer if needed

What happens when booting first time after sysprep generalizing?
  • First boot configuration is run
  • New SID is created
  • Re-arm counter is reseted if not already re-armed three times
  • Windows 7 is booted using first boot default drivers and settings


I have tested all above mentioned methods with all versions of Windows 7, from Starter to Enterprise. It works every time, with one exception: for reasons unknown to me, sysprep seems sometimes dislike Windows Media Player networking service, which is by default started every time Windows 7 starts. In about every third time I've done this, I've got an error message when trying to generalize:

Sysprep_Fatal_Error.png

However, this is not a big problem. You just need to stop the WMP networking service, and run sysprep with generalize option again. You can stop the service in question by typing net stop WMPNetworkSvc to command prompt, and hitting Enter:

Sysprep_Stop_WMP_service.png

If you have any questions, do not hesitate to ask.

Happy computing!

Kari

EDIT: A Useful tip from xxxwea, as later confirmed by Victor:
Kari, just a suggestion.

You might note in the tutorial that if on first booting Windows can't finish configuring, a reboot into safe mode, then a normal reboot will allow it to finish successfully.

This has happened to me both times I used a sysprepped system drive in a new computer. I found the answer to this problem buried deep in this thread the first time I ran into it, and the same thing happened yesterday on a different computer.

It's a seemingly very silly solution, but it works. I do believe many people have abandoned their sysprep work when they encounter the problem.

I think the solution deserves more visibility.
 
Last edited:
Hey everyone, I'm planning on building a new computer and was thinking about using Kensikos method first. If I did it that way, what drivers would I need to uninstall first besides the one mentioned below?

It should work, the IDE/SATA driver is the most important driver to uninstall.

Sysprep should be used as a last resort.

Also, am If I am to use the method 1 stated in the tutorial, am I understanding correctly that I follow steps 1-5, proceed to 6, and then after the HD is in the new computer just start it up, nothing special to do like booting from a CD/DVD?
 

My Computer My Computer

At a glance

Windows 7 Professional x64i5-2500KDDR3 8GBGTX 570
OS
Windows 7 Professional x64
CPU
i5-2500K
Motherboard
ASRock Extreme3 Gen3
Memory
DDR3 8GB
Graphics Card(s)
GTX 570
Sound Card
Onboard MOBO
Monitor(s) Displays
Asus
Screen Resolution
1920x1080
Hard Drives
1TB HDD
PSU
HX850
Case
Sunbeam Transformer
I used this tutorial a few months ago when I was trying out a new motherboard... Works very well.

But my situation now is that my mobo sizzled after my water cooling tubes came loose and it "rained" all over my board. Even after drying the system completely there are major issues. So I bought a new mobo last night and since I can't boot into my Windows installation, wondered if I might try booting with the drive attached to the new board, but in Safe Mode, and run Sysprep at that point. Now that I've written the idea, it seems unlikely that it would work but I don't know what else to try.

Thanks,
What is the error message?
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Am I understanding correctly that I follow steps 1-5, proceed to 6, and then after the HD is in the new computer just start it up, nothing special to do like booting from a CD/DVD?
Correct. Connect the HD to new computer and continue from step 7 booting from HD. No CD/DVD needed.

Kari
 

My Computer My Computer

At a glance

Windows 10 Pro x64 EN-GB1.6 GHz Intel Core i7-720QM Processor6 GBATI Mobility Radeon HD 5850 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Am I understanding correctly that I follow steps 1-5, proceed to 6, and then after the HD is in the new computer just start it up, nothing special to do like booting from a CD/DVD?
Correct. Connect the HD to new computer and continue from step 7 booting from HD. No CD/DVD needed.

Kari

Thank you for the clarification Kari
 

My Computer My Computer

At a glance

Windows 7 Professional x64i5-2500KDDR3 8GBGTX 570
OS
Windows 7 Professional x64
CPU
i5-2500K
Motherboard
ASRock Extreme3 Gen3
Memory
DDR3 8GB
Graphics Card(s)
GTX 570
Sound Card
Onboard MOBO
Monitor(s) Displays
Asus
Screen Resolution
1920x1080
Hard Drives
1TB HDD
PSU
HX850
Case
Sunbeam Transformer
I had a Megabyte motherboard that I discovered would not take a graphics card, but worked fine with the onboard graphics (so, very slow). I bought a barebones system to replace it and just transferred all the HW (ram, disk, gpu, optical). Windows 7 would BSOD even after trying a ShadowProtect hardware independent restore. Figured I was out of luck and so did a clean Windows 7 install and started building my system back up. Decided I just didn't want to find, reinstall and tweak everything, so did a bit of research and found this thread and this brilliant writeup on sysprep and, so far, it has worked great.

What might be useful to some folks is that I used "Advanced Token Manager" (ATM) to simplify getting reactivated. Since I had activated Win7 on the barebones system already, I backed-up that activation using ATM, then restored my sysprep-ed image from the bad motherboard system onto the barebones system and the used ATM to restore the activation. I've use ATM to be able to move system around and to avoid reactivating (not needing sysprep, because I have fairly consistent hardware). It came in handy in this case, because I had an existing activation and could restore it rather than, once again, having to activate windows.
 

My Computer My Computer

At a glance

Windows 7 Home Premium 64Pentium Dual Core4GBNVIDIA GeForce 210
Computer Manufacturer/Model Number
Self built
OS
Windows 7 Home Premium 64
CPU
Pentium Dual Core
Motherboard
Gigabyte G41M-ES2H
Memory
4GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
GigaByte Technology 82801G (ICH7 Family) High
Monitor(s) Displays
Acer H233H
Hard Drives
WDC WD5001AALS-00L3B2
PSU
Corsair 400
Case
Antec 900
Cooling
Stock
Thanks Bruce for the tip. A very practical way for taking care of reactivation. I have never used it but your experience might make me try.

Kari
 

My Computer My Computer

At a glance

Windows 10 Pro x64 EN-GB1.6 GHz Intel Core i7-720QM Processor6 GBATI Mobility Radeon HD 5850 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
...
 
Last edited:

My Computer My Computer

At a glance

[Genuine Custom DOS 5.0] & [Genuine Custom Wi...
OS
[Genuine Custom DOS 5.0] & [Genuine Custom Windows 7 Home Premium 64Bit SP1]

My Computer My Computer

At a glance

Windows 10 Pro x64 EN-GB1.6 GHz Intel Core i7-720QM Processor6 GBATI Mobility Radeon HD 5850 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
help pls

i myself am trying to swap a hard drive from a optiplex 775 into an optioplex gx520.....when i run the sysprep it gives me the Windows could not finish configuring the system error after sysprep /generalize.......lik ein this post

Windows could not finish configuring the system error after sysprep /generalize

i have tried every fix that is listed on that page....was wondering if you could give any more insight into the issue...thanks in advance for the advice...
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Well crap. Didn't go smooth for me. Want to move HDD to new machine. Did method one. Have no command prompt icon in the Start window therefore no option to choose "run as administrator". So just typed "command prompt" and got it up. Figured without admin privilege sysprep just wouldn't run.

Ran sysprep. Two minutes in I see "A fatal errror occured while trying to sysprep this machine". Great! Just what a blind follower wants to see. But sysprep keeps cranking. As I sit pondering WTF to do I scroll waaaaay down the page and see in Method 3... "this is not a big problem". So I become hopeful. It says to just stop the troublesome Windows Media Player Netwoking Service and run sysprep again. When I click "OK" on the the errror window it goes away, but so does the sysprep window that was still running! Well maybe that was supposed to happen. Lets hope so. So then, as instructed I type "net stop WMPNetworkSvc" at the command prompt. I kicks up "System error 5 has occured, Access is denied".

So now what do I do? Looking at my Windows log in screen I see I am set as "administrator" so I guess that didn't get turned off. I'm friggin lost and afraid to do anything. If I turn off my machine what will happen when I turn it back on?
 

My Computer My Computer

At a glance

win 7 64 bit
OS
win 7 64 bit
So just typed "command prompt" and got it up
right click on "command prompt" then "run as admin"

run sysprep as admin!! net stop WMPNetworkSvc as well
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Last post before mine was like a week old so didnt expect quick reply. Thanks.i went ahead and turned pc off. Will it even boot with the old hw still intact? It been doing one of "installing updates" 20 min. Seems stuck on update 12 of 12.
 

My Computer My Computer

At a glance

win 7 64 bit
OS
win 7 64 bit
OK, it finally finished updating. Should I turn it back on with old hw?
 

My Computer My Computer

At a glance

win 7 64 bit
OS
win 7 64 bit

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Replying to self... (it does appear like you are on the other side of the world and probably in bed)...

I turned it back on and it booted OK. Will try sysprep again with admin priv in cmd prompt.
 

My Computer My Computer

At a glance

win 7 64 bit
OS
win 7 64 bit
Last thing that happened is sysperep seemed to end prematurly when I closed the error window. Then turned PC off. Now its back on again and desktop seems normal.
 

My Computer My Computer

At a glance

win 7 64 bit
OS
win 7 64 bit
Installed updates when I turned it off.
 

My Computer My Computer

At a glance

win 7 64 bit
OS
win 7 64 bit
OK I got command prompt set to run as administrator. Woo hoo got windows media player networking service to stop! Now to redo sysprep.
 

My Computer My Computer

At a glance

win 7 64 bit
OS
win 7 64 bit

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
No error this time. It ran for a couple of minutes, went black and came back up with different screen resolution then tuned off. I think it worked.

I'll tear down the PC now and build it back with new MB and CPU. Thanks for being there! Now get some sleep!
 

My Computer My Computer

At a glance

win 7 64 bit
OS
win 7 64 bit
Back
Top