1"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([["296"],{8399(e,i,n){n.r(i),n.d(i,{metadata:()=>t,default:()=>c,frontMatter:()=>l,contentTitle:()=>d,toc:()=>h,assets:()=>r});var t=JSON.parse('{"id":"oem-folder","title":"$OEM$ Folders","description":"To create a pre-activated Windows installation ISO, do the following:","source":"@site/docs/oem-folder.md","sourceDirName":".","slug":"/oem-folder","permalink":"/oem-folder","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{},"sidebar":"sidebar","previous":{"title":"Check Activation Status","permalink":"/check_activation_status"},"next":{"title":"Change Windows Edition","permalink":"/change_windows_edition"}}'),o=n(4848),s=n(8453);let l={},d="$OEM$ Folders",r={},h=[{value:"Edit ISO File",id:"edit-iso-file",level:2},{value:"Preinstall Office",id:"preinstall-office",level:2},{value:"HWID",id:"hwid",level:2},{value:"Ohook",id:"ohook",level:2},{value:"TSforge",id:"tsforge",level:2},{value:"Online KMS",id:"online-kms",level:2},{value:"HWID + Ohook",id:"hwid--ohook",level:2},{value:"HWID + Ohook + TSforge",id:"hwid--ohook--tsforge",level:2},{value:"TSforge + Ohook",id:"tsforge--ohook",level:2}];function a(e){let i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"oem-folders",children:"$OEM$ Folders"})}),"\n",(0,o.jsx)(i.p,{children:"To create a pre-activated Windows installation ISO, do the following:"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:["Extract the ",(0,o.jsx)(i.code,{children:"$OEM$"})," folder to the desktop using the MAS script."]}),"\n",(0,o.jsxs)(i.li,{children:["Copy the ",(0,o.jsx)(i.code,{children:"$OEM$"})," folder to the ",(0,o.jsx)(i.code,{children:"sources"})," folder in the Windows installation media (ISO or USB)."]}),"\n",(0,o.jsxs)(i.li,{children:["The directory will appear like this: ",(0,o.jsx)(i.code,{children:"\\sources\\$OEM$"})," in your altered ISO or on your bootable USB drive."]}),"\n",(0,o.jsx)(i.li,{children:"Now use this ISO or bootable USB drive to install Windows, it will either already be activated (TSforge) as soon as it boots or will self-activate (HWID or Online KMS) at the first internet contact."}),"\n",(0,o.jsxs)(i.li,{children:["You can see ",(0,o.jsx)(i.a,{href:"/",children:"here"})," for activation method details."]}),"\n"]}),"\n",(0,o.jsx)(i.admonition,{type:"warning",children:(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:["On Windows 8 and later, ",(0,o.jsx)(i.a,{href:"https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-a-custom-script-to-windows-setup?view=windows-11#windows-setup-scripts",children:(0,o.jsx)(i.strong,{children:"running setupcomplete.cmd is disabled"})})," if the default installed key for the edition is from the OEM channel, except for Enterprise editions and Windows Server."]}),"\n",(0,o.jsx)(i.li,{children:"However, in Windows 10, IoT Enterprise editions were not included in the Enterprise category list during the installation process. As a result, Enterprise with an OEM key can handle setupcomplete.cmd, but IoT Enterprise (LTSC) cannot. This was fixed in later Windows 11 versions."}),"\n",(0,o.jsx)(i.li,{children:"In Windows 10 IoT Enterprise (LTSC), you can resolve this issue by using the Non-IoT Windows 10 Enterprise LTSC ISO. In this case, the HWID method in preactivation will install the IoT LTSC key to change the edition and enable HWID activation."}),"\n",(0,o.jsx)(i.li,{children:"In Windows 11 IoT Enterprise (LTSC), it works fine as expected by default."}),"\n"]})}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"edit-iso-file",children:"Edit ISO File"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:["As stated above, you can copy the ",(0,o.jsx)(i.code,{children:"$OEM$"})," folder to your bootable USB so you don't have to edit the ISO file. However, if you need to, then follow the steps below."]}),"\n",(0,o.jsxs)(i.li,{children:["Download ",(0,o.jsx)(i.a,{href:"https://www.anyburn.com/download.php",children:"AnyBurn Free Portable"})," and extract the zip file."]}),"\n",(0,o.jsxs)(i.li,{children:["Run the file named ",(0,o.jsx)(i.co
1de,{children:"AnyBurn(64-bit)\\AnyBurn.exe"}),"."]}),"\n",(0,o.jsxs)(i.li,{children:["Select the option named ",(0,o.jsx)(i.code,{children:"Edit image file"}),"."]}),"\n",(0,o.jsxs)(i.li,{children:["Follow the on-screen instructions and add the ",(0,o.jsx)(i.code,{children:"$OEM$"})," folder to the ",(0,o.jsx)(i.code,{children:"sources"})," folder so that the directory will appear like this: ",(0,o.jsx)(i.code,{children:"\\sources\\$OEM$"}),"."]}),"\n",(0,o.jsx)(i.li,{children:"Save the ISO, that's it."}),"\n"]}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"preinstall-office",children:"Preinstall Office"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:["Follow this ",(0,o.jsx)(i.a,{href:"office_c2r_custom",children:"guide"})," and download the Office files."]}),"\n",(0,o.jsxs)(i.li,{children:["Copy the downloaded ",(0,o.jsx)(i.code,{children:"Office"})," folder, ",(0,o.jsx)(i.code,{children:"setup.exe"})," and ",(0,o.jsx)(i.code,{children:"Configuration.xml"})," files, and paste them into the $OEM$ folder, beside the ",(0,o.jsx)(i.code,{children:"setupcomplete.cmd"})," file."]}),"\n",(0,o.jsxs)(i.li,{children:["Open the ",(0,o.jsx)(i.code,{children:"setupcomplete.cmd"})," file with notepad and add the lines below after ",(0,o.jsx)(i.code,{children:"fltmc >nul || exit /b"})," line.","\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{children:'cd /d "%~dp0"\nsetup.exe /configure Configuration.xml\n'})}),"\n"]}),"\n",(0,o.jsx)(i.li,{children:"Save the $OEM$ folder into the ISO as per above instructions, that's it."}),"\n"]}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"hwid",children:"HWID"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:"When using HWID activation, no files are stored on the system, and Windows 10-11 will be activated when connected to the internet for the first time."}),"\n"]}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"ohook",children:"Ohook"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:"If Office is preinstalled then Ohook method will activate the Office immediately without Internet. This activation uses custom sppc.dll file for the activation."}),"\n"]}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"tsforge",children:"TSforge"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:"When using TSforge activation, no files are stored on the system, and Windows / ESU / Office (preinstalled) becomes activated immediately without Internet."}),"\n"]}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"online-kms",children:"Online KMS"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:"When using Online KMS activation, Windows-Server and Office (Preinstalled) both will be activated when connected to the internet for the first time. This option uses a renewal task for lifetime activation."}),"\n"]}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"hwid--ohook",children:"HWID + Ohook"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:["In this method, Windows 10-11 will be activated with HWID, and ",(0,o.jsx)(i.strong,{children:"Office"})," (Preinstalled) will be activated using Ohook."]}),"\n"]}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"hwid--ohook--tsforge",children:"HWID + Ohook + TSforge"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:["In this method, Windows 10-11 will be activated with HWID, and ",(0,o.jsx)(i.strong,{children:"Office"})," (Preinstalled) will be activated using Ohook and Windows ESU will be activated with TSforge."]}),"\n"]}),"\n",(0,o.jsx)(i.hr,{}),"\n",(0,o.jsx)(i.h2,{id:"tsforge--ohook",children:"TSforge + Ohook"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:["In this method, Windows and ESU will be activated with TSforge, and ",(0,o.jsx)(i.strong,{children:"Office"})," (Preinstalled) will be activated using Ohook."]}),"\n"]})]})}function c(e={}){let{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(a,{...e})}):a(e)}},8453(e,i,n){n.d(i,{R:()=>l,x:()=>d});var t=n(6540);let o={},s=t.createContext(o);function l(e){let i=t.useContext(s);return t.useMemo(function(){return"function"==typeof e?e(i):{...i,...e}},[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:l(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.