diff options
| author | WindowsAddict | 2025-08-10 21:15:41 +0000 |
|---|---|---|
| committer | WindowsAddict | 2025-08-10 21:15:41 +0000 |
| commit | ef5e1bcf01a35bf609762f6fde2d9f13a931e794 (patch) | |
| tree | c195791dbf0deb7eb3bbf42a175ed9dd6279952a /docs/command_line_switches.md | |
| parent | 596c40ebb60479734e038a2f7d1c1b77a365d60e (diff) | |
| download | massgrave.dev-ef5e1bcf01a35bf609762f6fde2d9f13a931e794.zip | |
3.5
Diffstat (limited to 'docs/command_line_switches.md')
| -rw-r--r-- | docs/command_line_switches.md | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/command_line_switches.md b/docs/command_line_switches.md index 2f57f33..e6a2b8b 100644 --- a/docs/command_line_switches.md +++ b/docs/command_line_switches.md @@ -78,10 +78,19 @@ Run operations in silent mode (no output but the CMD window will still appear) ## Using in the Powershell One-Liner
-`& ([ScriptBlock]::Create((irm https://get.activated.win))) /para`
+For **Windows 7** and later:
+
+```
+& ([ScriptBlock]::Create((New-Object Net.WebClient).DownloadString('https://get.activated.win'))) /para
+```
+
+If the above is blocked (by DNS/ISP), try this alternative method (requires **updated Windows 10 or 11**):
+
+```
+& ([ScriptBlock]::Create((curl.exe -s --doh-url https://1.1.1.1/dns-query https://get.activated.win | Out-String))) /para
+```
- Replace `/para` in this command with the switches from the above table. You can also use multiple switches. For example, `/HWID /Ohook`
-- This Powershell one-liner will only work on Windows 8.1 and later.
- To change the edition through the command line, check [here](change_windows_edition.md#manual-edition-change). We didn't automate it in MAS because it requires a reboot in some cases.
------------------------------------------------------------------------
|
