removing ubuntu from dual-boot setup without pain

One of my laptops is always setup with dual boot, Windows and ubuntu. I keep refreshing my laptops every few months and with wubi gone messing up with partitions is that much pain. However there is a simple procedure to remove ubuntu and return machine back to boot with Windows only, basically you don’t have to worry about removing grub and setting up MBR correctly.

Steps are:

  1. Get bootsect.exe here
  2. Execute this command: bootsect.exe /nt60 ALL /force /mbr
  3. Reboot and fixup the disk as documented here