2023-03-16 19:09:16 +01:00
---
pagetitle: Command Line Switches
---
2022-11-07 21:30:36 +01:00
# 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.
2023-01-11 12:19:43 +01:00
- If you want to use it in Windows Pre-Activation then check [this ](oem-folder.html ) page for more details.
2022-11-07 21:30:36 +01:00
2023-03-16 19:09:16 +01:00
| 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 (Use this) |
| `/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) |
2022-11-07 21:30:36 +01:00
------------------------------------------------------------------------
## Uses In Powershell One Liner
`& ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /para`
2023-03-16 19:09:16 +01:00
- Replace `/para` in this command with the switches from the above table. You can use multiple switches. For example, if you want to activate Windows and Office both with the best method possible then use,
`& ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /HWID /KMS38 /KMS-WindowsOffice /KMS-ActAndRenewalTask`
If you just want to activate Windows with HWID and Office with KMS then,
`& ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /HWID /KMS-Office /KMS-ActAndRenewalTask`
If you just wants to activate Windows with HWID then,
`& ([ScriptBlock]::Create((irm https://massgrave.dev/get))) /HWID`
2022-11-07 21:30:36 +01:00
2023-03-16 19:09:16 +01:00
**Note:** This Powershell one liner will work on Windows 8 and later versions only.
2022-11-07 21:30:36 +01:00
------------------------------------------------------------------------
## 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.
2023-03-16 19:09:16 +01:00
- KMS Uninstall switch will take precedence over other KMS switches.
2022-11-07 21:30:36 +01:00
- KMS38 remove protection switch will task precedence over KMS38 activation.
------------------------------------------------------------------------
## Need help?
2023-03-16 19:09:16 +01:00
- Check [here ](troubleshoot.html ).