Skip to content

Instantly share code, notes, and snippets.

@bmsimons
Last active September 3, 2026 04:24
Show Gist options
  • Select an option

  • Save bmsimons/f2bc1db9d4bd1e46383ae16714e1d318 to your computer and use it in GitHub Desktop.

Select an option

Save bmsimons/f2bc1db9d4bd1e46383ae16714e1d318 to your computer and use it in GitHub Desktop.
Download all Windows ISOs directly from Microsoft with a trick

Just run the following JavaScript bookmarklet on https://www.microsoft.com/en-us/software-download/windows10 to reveal all Windows versions.

$("select#product-edition").html("<option value selected value='selected'>Select edition</option><option value='2'>Windows 7 Home Basic SP1 </option><option value='4'>Windows 7 Professional SP1 </option><option value='6'>Windows 7 Home Premium SP1 </option><option value='8'>Windows 7 Ultimate SP1 </option><option value='10'>Windows 7 Home Premium N SP1 </option><option value='12'>Windows 7 Professional N SP1 </option><option value='14'>Windows 7 Ultimate N SP1 </option><option value='16'>Windows 7 Professional K SP1 </option><option value='18'>Windows 7 Professional KN SP1 </option><option value='20'>Windows 7 Home Premium K SP1 </option><option value='22'>Windows 7 Home Premium KN SP1 </option><option value='24'>Windows 7 Ultimate KN SP1 </option><option value='26'>Windows 7 Ultimate K SP1 </option><option value='28'>Windows 7 Starter SP1 </option><option value='48'>Windows 8.1 Single Language </option><option value='52'>Windows 8.1 </option><option value='55'>Windows 8.1 N </option><option value='61'>Windows 8.1 K </option><option value='62'>Windows 8.1 KN </option><option value='68'>Windows 8.1 Professional LE </option><option value='69'>Windows 8.1 Professional LE K </option><option value='70'>Windows 8.1 Professional LE KN </option><option value='71'>Windows 8.1 Professional LE N </option><option value='75'>Windows 10 Education (Academic) - build 10240</option><option value='76'>Windows 10 Education KN (Academic) - build 10240</option><option value='77'>Windows 10 Education N (Academic) - build 10240</option><option value='78'>Windows 10 China Get Genuine Chinese Simplified - build 10240</option><option value='79'>Windows 10 Pro-Home - build 10240</option><option value='80'>Windows 10 ProKN-HomeKN - build 10240</option><option value='81'>Windows 10 ProN-HomeN - build 10240</option><option value='82'>Windows 10 Single Language - build 10240</option><option value='83'>Windows 7 Home Basic SP1 COEM </option><option value='85'>Windows 7 Home Basic SP1 COEM GGK </option><option value='86'>Windows 7 Home Premium N SP1 COEM </option><option value='87'>Windows 7 Home Premium SP1 COEM </option><option value='88'>Windows 7 Home Premium SP1 COEM GGK </option><option value='89'>Windows 7 Home Premium K SP1 COEM </option><option value='90'>Windows 7 Professional N SP1 COEM </option><option value='91'>Windows 7 Professional SP1 COEM </option><option value='92'>Windows 7 Starter SP1 COEM </option><option value='93'>Windows 7 Ultimate K SP1 COEM </option><option value='94'>Windows 7 Ultimate KN SP1 COEM </option><option value='95'>Windows 7 Ultimate N SP1 COEM </option><option value='96'>Windows 7 Ultimate SP1 COEM </option><option value='97'>Windows 7 Home Premium KN SP1 COEM </option><option value='98'>Windows 7 Professional KN SP1 COEM </option><option value='99'>Windows 10 Pro-Home - build 10586 </option><option value='100'>Windows 10 Education - build 10586 </option><option value='101'>Windows 10 Education KN - build 10586 </option><option value='102'>Windows 10 Education N - build 10586 </option><option value='103'>Windows 10 China Get Genuine Chinese Simplified - build 10586</option><option value='104'>Windows 10 ProKN-HomeKN - build 10586 </option><option value='105'>Windows 10 ProN-HomeN - build 10586 </option><option value='106'>Windows 10 Single Language - build 10586 </option><option value='107'>Windows 10 IoT Core Insider Preview - Build 10586 </option><option value='108'>Windows 10 IoT Core Insider Preview - Build 14262 </option>");
@meepak

meepak commented May 11, 2019

Copy link
Copy Markdown

Doesn't work anymore.

@robotL546

Copy link
Copy Markdown

wow that worked thanks

@ADITYAROY08

Copy link
Copy Markdown

Thanks a lot it worked !!

@IPedrax

IPedrax commented Aug 26, 2026

Copy link
Copy Markdown

Running this on https://www.microsoft.com/en-us/software-download/windows11 lists the latest builds of each version

(() => {
  const editions = [
    [28,   "Windows 7 Starter SP1 (7601)"],
    [2,    "Windows 7 Home Basic SP1 (7601)"],
    [6,    "Windows 7 Home Premium SP1 (7601)"],
    [10,   "Windows 7 Home Premium N SP1 (7601)"],
    [4,    "Windows 7 Professional SP1 (7601)"],
    [12,   "Windows 7 Professional N SP1 (7601)"],
    [8,    "Windows 7 Ultimate SP1 (7601)"],
    [14,   "Windows 7 Ultimate N SP1 (7601)"],
    [48,   "Windows 8.1 Single Language (9600.17415)"],
    [52,   "Windows 8.1 (9600.17415)"],
    [55,   "Windows 8.1 N (9600.17415)"],
    [61,   "Windows 8.1 K (9600.17415)"],
    [62,   "Windows 8.1 KN (9600.17415)"],
    [68,   "Windows 8.1 Professional LE (9600.17415)"],
    [69,   "Windows 8.1 Professional LE K (9600.17415)"],
    [70,   "Windows 8.1 Professional LE KN (9600.17415)"],
    [71,   "Windows 8.1 Professional LE N (9600.17415)"],
    [2378, "Windows 10 22H2 Home China (19045.2006)"],
    [2618, "Windows 10 22H2 (19045.2965)"],
    [3113, "Windows 11 24H2 x64 (26100.1742)"],
    [3131, "Windows 11 24H2 Arm64 (26100.1742)"],
    [3262, "Windows 11 25H2 x64 (26200.6584)"],
    [3265, "Windows 11 25H2 Arm64 (26200.6584)"]
  ];
  const sel = document.querySelector("#product-edition")
           || [...document.querySelectorAll("select")]
                .find(s => /multi-edition|Select edition/i.test(s.textContent));
  if (!sel) return console.error("Edition dropdown not found.");
  sel.innerHTML = '<option value="" selected>Select edition</option>'
    + editions.map(([id, name]) => `<option value="${id}">${name}</option>`).join("");
  sel.dispatchEvent(new Event("change", { bubbles: true }));
  console.log("Injected", editions.length, "editions.");
})();

@Intelinsidecom

Copy link
Copy Markdown

Running this on https://www.microsoft.com/en-us/software-download/windows11 lists the latest builds of each version

(() => {
  const editions = [
    [28,   "Windows 7 Starter SP1 (7601)"],
    [2,    "Windows 7 Home Basic SP1 (7601)"],
    [6,    "Windows 7 Home Premium SP1 (7601)"],
    [10,   "Windows 7 Home Premium N SP1 (7601)"],
    [4,    "Windows 7 Professional SP1 (7601)"],
    [12,   "Windows 7 Professional N SP1 (7601)"],
    [8,    "Windows 7 Ultimate SP1 (7601)"],
    [14,   "Windows 7 Ultimate N SP1 (7601)"],
    [48,   "Windows 8.1 Single Language (9600.17415)"],
    [52,   "Windows 8.1 (9600.17415)"],
    [55,   "Windows 8.1 N (9600.17415)"],
    [61,   "Windows 8.1 K (9600.17415)"],
    [62,   "Windows 8.1 KN (9600.17415)"],
    [68,   "Windows 8.1 Professional LE (9600.17415)"],
    [69,   "Windows 8.1 Professional LE K (9600.17415)"],
    [70,   "Windows 8.1 Professional LE KN (9600.17415)"],
    [71,   "Windows 8.1 Professional LE N (9600.17415)"],
    [2378, "Windows 10 22H2 Home China (19045.2006)"],
    [2618, "Windows 10 22H2 (19045.2965)"],
    [3113, "Windows 11 24H2 x64 (26100.1742)"],
    [3131, "Windows 11 24H2 Arm64 (26100.1742)"],
    [3262, "Windows 11 25H2 x64 (26200.6584)"],
    [3265, "Windows 11 25H2 Arm64 (26200.6584)"]
  ];
  const sel = document.querySelector("#product-edition")
           || [...document.querySelectorAll("select")]
                .find(s => /multi-edition|Select edition/i.test(s.textContent));
  if (!sel) return console.error("Edition dropdown not found.");
  sel.innerHTML = '<option value="" selected>Select edition</option>'
    + editions.map(([id, name]) => `<option value="${id}">${name}</option>`).join("");
  sel.dispatchEvent(new Event("change", { bubbles: true }));
  console.log("Injected", editions.length, "editions.");
})();

You literally imported the versions using the script dude, they were hard coded but the server recognized them even if removed because they existed in the backend

@IPedrax

IPedrax commented Aug 26, 2026

Copy link
Copy Markdown

Running this on https://www.microsoft.com/en-us/software-download/windows11 lists the latest builds of each version

(() => {
  const editions = [
    [28,   "Windows 7 Starter SP1 (7601)"],
    [2,    "Windows 7 Home Basic SP1 (7601)"],
    [6,    "Windows 7 Home Premium SP1 (7601)"],
    [10,   "Windows 7 Home Premium N SP1 (7601)"],
    [4,    "Windows 7 Professional SP1 (7601)"],
    [12,   "Windows 7 Professional N SP1 (7601)"],
    [8,    "Windows 7 Ultimate SP1 (7601)"],
    [14,   "Windows 7 Ultimate N SP1 (7601)"],
    [48,   "Windows 8.1 Single Language (9600.17415)"],
    [52,   "Windows 8.1 (9600.17415)"],
    [55,   "Windows 8.1 N (9600.17415)"],
    [61,   "Windows 8.1 K (9600.17415)"],
    [62,   "Windows 8.1 KN (9600.17415)"],
    [68,   "Windows 8.1 Professional LE (9600.17415)"],
    [69,   "Windows 8.1 Professional LE K (9600.17415)"],
    [70,   "Windows 8.1 Professional LE KN (9600.17415)"],
    [71,   "Windows 8.1 Professional LE N (9600.17415)"],
    [2378, "Windows 10 22H2 Home China (19045.2006)"],
    [2618, "Windows 10 22H2 (19045.2965)"],
    [3113, "Windows 11 24H2 x64 (26100.1742)"],
    [3131, "Windows 11 24H2 Arm64 (26100.1742)"],
    [3262, "Windows 11 25H2 x64 (26200.6584)"],
    [3265, "Windows 11 25H2 Arm64 (26200.6584)"]
  ];
  const sel = document.querySelector("#product-edition")
           || [...document.querySelectorAll("select")]
                .find(s => /multi-edition|Select edition/i.test(s.textContent));
  if (!sel) return console.error("Edition dropdown not found.");
  sel.innerHTML = '<option value="" selected>Select edition</option>'
    + editions.map(([id, name]) => `<option value="${id}">${name}</option>`).join("");
  sel.dispatchEvent(new Event("change", { bubbles: true }));
  console.log("Injected", editions.length, "editions.");
})();

You literally imported the versions using the script dude, they were hard coded but the server recognized them even if removed because they existed in the backend

Isn't the objective to get the official ISOs directly from microsoft? I just listed the last version of each OS

@jakobwarburton12

Copy link
Copy Markdown

Error
We encountered a problem processing your request. Please try again later.
Reference ID: 20260828T054524Z-r166f9b568748r4phC1AKLfrd000000001k0000000000rkx

@thinkingspace2

Copy link
Copy Markdown

can you do the same thing with windows xp

@jakobwarburton12

Copy link
Copy Markdown

I dont think so i think it only goes nack to windows 7 I think is their oldest server for ISO downlaoding.

@Protime1

Copy link
Copy Markdown

Thank you script is worked i download 7 starter (if need i can send link)

@BT-76

BT-76 commented Aug 31, 2026

Copy link
Copy Markdown

nothing happend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment