How do I more efficiently reinstall Windows?

18

10

My workflow for reinstalling Windows is cumbersome. It includes things from extracting the key from the old installation, to the actual installation process, which involves popping in the relevant Windows installer DVD, waiting a few minutes for it to load, selecting initial settings, waiting while they apply, entering more settings, waiting for it to apply, entering user settings, and finally more waiting. It's not over, Windows update has to run for all updates through the years, rebooting 4 or 5 times until it's complete.

Reinstalling Windows is an all-day task, and requires me "babysitting" the system for much of the time.

I can't imagine computer repair companies that have maybe 4 or 5 machines come through a day sit through this mess. How do "the big boys" do it? How do computer repair companies efficiently reinstall Windows?

IQAndreas

Posted 2015-10-22T07:53:03.753

Reputation: 2 317

5Just for comparison, I can install Debian in under an hour, which can include the latest updates automatically and even be done remotely. – IQAndreas – 2015-10-22T07:55:26.160

1For a start, they slipstream all of those updates, on a regular basis, so that they only have one complete image to install, with no updates. – Mawg says reinstate Monica – 2015-10-22T07:57:26.077

Why you can't use image with Sysprep? – emirjonb – 2015-10-22T08:10:48.633

@emirjonb I probably could, I'm just not familiar with the tool. The information I am finding on it is for Windows XP and older; do you have a link with details for "newer" versions of Windows? – IQAndreas – 2015-10-22T08:25:04.640

@IQAndreas actually sysprep is a windows tool that make an updated windows image with programs installed that is not hardware related. after sysprep the PC is shut down and you can use any tool available to make the cloning. I personally go with filezilla(free tool) that works with windows share on network (using samba) – emirjonb – 2015-10-22T09:14:57.603

It is simple enough to create a .wim file that includes all updates. If you are installing a version of Windows it makes sense to create a new clean .wim image on a schedule that fits your needs. It depends what you mean by "repair companies" though, that concept in my part of the world, does not really exist (USA). – Ramhound – 2015-10-22T10:52:23.080

I've installed the same OS on 15 computers in 8 hours. Install the first one, skip key entry, enter default options, patch (2 hours), then mass copy the partition to the remaining drives via USB, a Linux Live CD, and the dd command. – Nelson – 2015-10-22T13:09:05.647

@Nelson Now you're talkin'! That solution is right up my alley. Does it even work if the computers have different hardware? Are there any hardware-specific steps during the initial installation? – IQAndreas – 2015-10-22T14:40:47.423

1I'll post more details tomorrow as an answer :) – Nelson – 2015-10-22T14:52:36.700

If computer repair companies have 4-5 PCs daily then they do install them simulataneously, not one after the other. – Robert Niestroj – 2015-10-22T21:30:10.243

I don't even remember when was the last time it took me as long as an hour to install Windows. My number one suggestion would be "don't use the DVD". I've had the installer on a USB drive for a long time, and it makes the installation a breeze. It's also easy to migrate configuration nowadays (Windows Easy Transfer actually works), and even applications to an extent. You can create an answer file if you want an unattended installation - that's also been supported for ages, as well as remote installation (though that's a lot of work to setup, and slower than using an USB drive). – Luaan – 2015-10-23T09:10:32.630

@Luaan Are there USB installation options available from Microsoft, or do you still have to use third party tools to create it? – IQAndreas – 2015-10-23T13:11:40.893

Well... you don't need any third-party tools. Just setup a boot sector (using bootsect) and copy the DVD over - that's all you need. – Luaan – 2015-10-23T14:41:09.333

Answers

11

Well, doing a factory reinstall would give you a clue - there's a fair bit of background work. They essentially set up an unattended install script that'll install software on a fresh install, do initial setup and so on. You might also use post install scripts to run installations and setup user preferences.

For modern versions of windows, this would require the use of WAIK and building a reference installation. You might also have a script that installs software - there's a page on sourceforge that's an excellent resource on the switches for various installers.

However for us lesser mortals, who only do the rare installation...

Organisation is everything. I have a backed up folder with keys for a system. I have media (and download what I need directly off MS). I use rufus to build boot USBs (USB installs are faster)

I tend to do a fresh install, then get things updated with wsus offline update - I maintain a set of updates for the OSes I use directory so I don't need to download these each time.

Install software as far as possible in an automated fashion - I favour ninite but oneget or chocolaty is a better option. This ensures that I have the latest version, and is easier than wrangling everything manually.

In some cases I have folders with copies of my user settings. Hexchat for example has customization that date back decades and 3-4 different xchat forks for me, and I just copy these over.

I build it, make a 'gold' image, and use that when I need to reinstall by restoring that setup. Unlike a linux box, I do need to pull in software from multiple places at the moment, and this speeds things up, even when ninite covers most of my basics.

Journeyman Geek

Posted 2015-10-22T07:53:03.753

Reputation: 119 122

10

While I agree with the other answers, I think they somewhat miss the point. The question specifically asks about reinstalling Windows which is what I'll address here. I'm deliberately ignoring installing optional applications as they are not mentioned in the question and are already covered in the other answers.

There are a few ways to automate the installation of Windows so you don't have to "babysit" it.

1. Unattended answer file.

This is by far the easiest and simplest method. It is basically a text file (well, XML) that provides preset responses to all the questions asked during setup, so they are entered automatically.

https://technet.microsoft.com/en-us/library/cc785644(v=ws.10).aspx

(The above link provides the basics of how it works, there are various articles detailing specifics for Windows 7+)

2. Preinstalled images

Much like Norton Ghost used to do (and various other modern alternatives), all this is an image of a disk with Windows you have already installed on it that gets copied in whole when you want to "Install" a new machine. This is very similar to the "Factory restore" images that manufacturers supply with their machines - only when doing it privately, you have to manually install drivers afterwards if the "source" and "destination" machines differ sufficiently. For the most part, stock drivers and Windows Update are sufficient, especially if combined with a USB stick with a set of drivers for the big vendors - Intel, AMD, nVidia - most of them release unified driver packs these days that cover all recent products anyway.

3. Automated deployment

For larger-scale operations some companies use a centrally-driven auto-deployment system. In essence it's a combination of either 1. or 2. above and a central image repository and network booting infrastructure. This can cut down the entire install process to as little as start PC, press F12, press Y, but is quite a lot of effort to set up (though not entirely prohibitive for a superuser)


Of the above, most don't deal with the issue of installing Windows updates afterwards. As others have suggested, slipstreaming Windows update into your install disk itself is the most widely used method, but this means you do have to update your install disk/image regularly. Alternatively, switch to Windows 10, where Microsoft updates the images regularly, or use one of the slipstreamed "rollup" images you can often get via P2P (note, you can get "untouched" ones that do not have any pirated/cracked software on them, only genuine Microsoft updates, though even those are dubious in their legality)

In itself, none of them deal with licensing either, but most Windows installs will complete with an invalid or trial key or no key at all, allowing you or the user to enter a legitimate CD key and activate the product anytime up to several months after installing it.

Of course, if you're paid by the hour, having to babysit the machine all day might not be a bad thing.


Footnote: Technically, above-board "computer repair companies" can only legally reinstall Windows using the license and media that came with the machine - i.e. doing a factory restore - or using individual licenses. Installing your machine using my CD, but entering your license key, is legally ambiguous. Nobody would ever do anything about it, but I wouldn't do it on work time either.

qasdfdsaq

Posted 2015-10-22T07:53:03.753

Reputation: 5 762

1Also, many modern windows versions have 'special' keys (SLP keys) sometimes embedded in the bios. Makes reinstalls easier. Your factory fresh windows system would be using a generic key, not the one stuck under your PC. This would possibly make feeding your install key boot, especially for windows 8 or later. – Journeyman Geek – 2015-10-22T15:11:33.723

3

As of Windows 8 and newer this is pretty much one click: How to refresh, reset, or restore your PC

If you want to do this manually i recommend:

  • Have two partitions: one for the OS and apps (C:) and a second for data (D:). Try keeping data on D for example by setting the location of the Desktop, Documents, Downloads, etc folders on D. This way you speed up the backup before reinstall process by simply mostly have this already done/
  • Get an Windows AiO ISO image : AiO means "all in one". These are images with have different possible editions and versions of one Windows system (32/64bit, home, pro, etc). They also usually have included recent Windows updates so you dont have a shorter update process. Example Windows 8.1 AiO
  • Get WSUS Offline Update - this tool downloads windows updates offline and lets them install this updates offline. This saves you some time and a few manual restarts. Keep this on an USB flash drive. On older PC i usually let WSUS OU run overnight immidiately after a fresh install
  • Have your tools ready - i have a USB flash drive with the most used programs i install over and over for example 7-zip, Firefox, Flash, CCCP Codec Pack, Power ISO, CD Burner XP, MS Office image, Adobe PDF reader/Foxit PDF Reader, TeamViewer QS, CCleaner, Malwarebytes Anti-Malware, Bitdefender Free. This way you dont have to search for them and download. You have them and installing them is a matter of 15 minutes. There are even programs where you can create a collection of this programs and the tool installs them for you automatically.

On a current PC (max 4 years old) such a reinstall i do in 1-2h with only 1h max being really 'active' at the computer.

Robert Niestroj

Posted 2015-10-22T07:53:03.753

Reputation: 693

2

Slipstream the updates, downloading them each time would be just too painful for me. Depending on how many machines you expect to be installing on you might want to make your own installation media with all the software you normally install on it.

I tend to do it using bootable USB drives and just have everything on it, still have to hang around monitoring but I can do as many simultaneously as I want. I haven't timed it but I would think 2 hours would do a full build with software such as adobe pro and MS Office, a basic build perhaps an hour. I'm just guessing though, I don't bother watching the whole process.

For most of my bigger clients we setup network installs and the whole thing is run off scripts. But those are all identical builds and no worries about licensing individually.

Fastest way I can think of is just building from images or raw copy, under an hour for a complete build with software. I use this method for my laptop I'm using.

Kilisi

Posted 2015-10-22T07:53:03.753

Reputation: 506

1

This is what I have done in the past. The OS can handle minor hardware changes; it would be like doing an upgrade. However, having different CPU type (Intel / AMD) might cause a problem.

So here are the steps:

Initial Computer

  • Windows install without license key entry (OS will let you enter later).
  • Grab all your hardware drivers for all the systems and might as well just copy them to the HDD
  • Get corporate downloads for large OS patches and install them
  • Install anything that is common to all machines. If the software needs product keys, look into how easy it is to change the product key after installation.
  • Get a drive cloning utility. If you're tech savvy, free Linux Live CD with Knoppix will work. Otherwise buy Norton Ghost or whatever drive cloning utility that suits you.

Next, get a pile of HDD enclosures, around $15/ea, and connect a pile of HDDs to your first computer. Clone the drive across all the other drives. If computer runs out of USB port, connect the HDD to another computer and continue.

After that stick the HDDs back into computers and boot them up, install the appropriate drivers, and finish the OS install.

The cloning phase takes the longest, but should be a large block of un-manned time, so you can just do something else instead of clicking on buttons and whatnot, or just go to sleep at night.

Nelson

Posted 2015-10-22T07:53:03.753

Reputation: 1 199