1 line
7.8 KiB
JavaScript
1 line
7.8 KiB
JavaScript
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[4845],{5919:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>r,contentTitle:()=>c,default:()=>a,frontMatter:()=>d,metadata:()=>l,toc:()=>h});var s=i(4848),t=i(8453);const d={},c="Command Line Switches",l={id:"command_line_switches",title:"Command Line Switches",description:"Switches List",source:"@site/docs/command_line_switches.md",sourceDirName:".",slug:"/command_line_switches",permalink:"/command_line_switches",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/command_line_switches.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Online KMS Activation",permalink:"/online_kms"},next:{title:"Check Activation Status",permalink:"/check_activation_status"}},r={},h=[{value:"Switches List",id:"switches-list",level:2},{value:"Uses In Powershell One Liner",id:"uses-in-powershell-one-liner",level:2},{value:"Rules",id:"rules",level:2},{value:"Need help?",id:"need-help",level:2}];function o(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"command-line-switches",children:"Command Line Switches"}),"\n",(0,s.jsx)(n.h2,{id:"switches-list",children:"Switches List"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"You can use the below switches in MAS AIO, separate files version and in Powershell one-liner to run in unattended mode."}),"\n",(0,s.jsxs)(n.li,{children:["If you want to use it in Windows Pre-Activation then check ",(0,s.jsx)(n.a,{href:"/oem-folder",children:"this"})," page for more details."]}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Switches"}),(0,s.jsx)(n.th,{children:"Meaning"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/HWID"})}),(0,s.jsx)(n.td,{children:"Activate with HWID"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/HWID-NoEditionChange"})}),(0,s.jsxs)(n.td,{children:["Some editions don't support HWID, script by default change edition to nearest available to enable HWID activation. This switch can be used to stop this change. You don't need to add ",(0,s.jsx)(n.code,{children:"/HWID"})," switch with this."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/Ohook"})}),(0,s.jsx)(n.td,{children:"Install Ohook to activate Office"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/Ohook-Uninstall"})}),(0,s.jsx)(n.td,{children:"Uninstall Ohook"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS38"})}),(0,s.jsx)(n.td,{children:"Activate with KMS38"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS38-RemoveProtection"})}),(0,s.jsx)(n.td,{children:"Remove KMS38 protection"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS38-NoEditionChange"})}),(0,s.jsxs)(n.td,{children:["Some editions don't support KMS38, script by default change edition to nearest available to enable KMS38 activation. This switch can be used to stop this change. You don't need to add ",(0,s.jsx)(n.code,{children:"/KMS38"})," switch with this."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-Windows"})}),(0,s.jsx)(n.td,{children:"Activate Windows with Online KMS"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-Office"})}),(0,s.jsx)(n.td,{children:"Activate Office with Online KMS"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-WindowsOffice"})}),(0,s.jsx)(n.td,{children:"Activate Windows & Office with Online KMS"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-RenewalTask"})}),(0,s.jsx)(n.td,{children:"Install Online KMS renewal task"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-ActAndRenewalTask"})}),(0,s.jsx)(n.td,{children:"Install Online KMS activation & renewal tasks (Recommended)"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-Uninstall"})}),(0,s.jsx)(n.td,{children:"Uninstall Online KMS"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-KeepvNext"})}),(0,s.jsx)(n.td,{children:"Don't override Office C2R vNext license"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-Debug"})}),(0,s.jsx)(n.td,{children:"Create Debug log in Online KMS Activation"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/KMS-Logger"})}),(0,s.jsx)(n.td,{children:"Create simple log in Online KMS Activation"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"/S"})}),(0,s.jsx)(n.td,{children:"Run operations in silent mode (no output)"})]})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"uses-in-powershell-one-liner",children:"Uses In Powershell One Liner"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"& ([ScriptBlock]::Create((irm https://mass grave.dev/get))) /para"})}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Notes"})," - Remove the space between\xa0",(0,s.jsx)(n.code,{children:"mass grave"})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Replace ",(0,s.jsx)(n.code,{children:"/para"})," in this command with the switches from the above table. You can also use multiple switches. For example, ",(0,s.jsx)(n.code,{children:"/HWID /KMS-Office /KMS-ActAndRenewalTask"})]}),"\n",(0,s.jsx)(n.li,{children:"This Powershell one-liner will work on Windows 8.1 and later versions only."}),"\n",(0,s.jsxs)(n.li,{children:["To change the edition through the command line, check ",(0,s.jsx)(n.a,{href:"/change_edition#manual-edition-change",children:"here"}),". We didn't automate it in MAS because it requires a reboot in some cases."]}),"\n"]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"rules",children:"Rules"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Script will run in unattended mode if any switch is used."}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"/S"})," switch is not applicable in MAS separate files version scripts."]}),"\n",(0,s.jsx)(n.li,{children:"All switches are case-insensitive, and work in any order, but must be separated with spaces."}),"\n",(0,s.jsx)(n.li,{children:"KMS Uninstall switch will take precedence over other KMS switches."}),"\n",(0,s.jsx)(n.li,{children:"KMS38 remove protection switch will take precedence over KMS38 activation."}),"\n"]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"need-help",children:"Need help?"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Check ",(0,s.jsx)(n.a,{href:"/troubleshoot",children:"here"}),"."]}),"\n"]})]})}function a(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>c,x:()=>l});var s=i(6540);const t={},d=s.createContext(t);function c(e){const n=s.useContext(d);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),s.createElement(d.Provider,{value:n},e.children)}}}]); |