summaryrefslogtreecommitdiff
path: root/command_line_switches.md
blob: 0814bea30a534bd171231d76be844c099ceb26e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Command Line Switches

------------------------------------------------------------------------

## Switches List

-   You can use the below switches in MAS AIO, separate files version and in Powershell one-liner to run in unattended mode.

-   If you want to use it in Windows Pre-Activation then check [this](oem-folder.html) page for more details.

| Switches                  | Meaning                                        |
|---------------------------|------------------------------------------------|
| `/HWID`                   | Activate with HWID                             |
| `/HWID-NoEditionChange`   | Don't change edition if not supported by HWID  |
|                           |                                                |
| `/KMS38`                  | Activate with KMS38                            |
| `/KMS38-RemoveProtection` | Remove KMS38 protection                        |
| `/KMS38-NoEditionChange`  | Don't change edition if not supported by KMS38 |
|                           |                                                |
| `/KMS-Windows`            | Activate Windows with Online KMS               |
| `/KMS-Office`             | Activate Office with Online KMS                |
| `/KMS-WindowsOffice`      | Activate Windows & Office with Online KMS      |
| `/KMS-RenewalTask`        | Install Online KMS renewal task                |
| `/KMS-ActAndRenewalTask`  | Install Online KMS activation & renewal tasks  |
| `/KMS-Uninstall`          | Uninstall Online KMS                           |
| `/KMS-KeepvNext`          | Don't override Office C2R vNext license        |
| `/KMS-Debug`              | Create Debug log in Online KMS Activation      |
| `/KMS-Logger`             | Create simple log in Online KMS Activation     |
|                           |                                                |
| `/Insert-HWID-Key`        | Insert Windows HWID key                        |
|                           |                                                |
| `/S`                      | Run operations in silent mode (no output)      |

------------------------------------------------------------------------

## Uses In Powershell One Liner

`& ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /para`

-   Replace `/para` in the this command with the switches from the above table. You can use multiple switches. Example,

`& ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /HWID /KMS-Office`

------------------------------------------------------------------------

## Rules

-   Script will run in unattended mode if any switch is used.

-   `/S` switch is not applicable in MAS separate files version scripts.

-   All switches are case-insensitive, works in any order, but must be separated with spaces.

-   KMS Uninstall switch will take precedence over other KMS switches

-   KMS38 remove protection switch will task precedence over KMS38 activation.

------------------------------------------------------------------------

## Need help?

-   Reach out to us on [Discord](https://discord.gg/gjJEfq7ux8) (signup not required)