diff --git a/hugo.toml b/hugo.toml index 92b2525..2a3f92b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -14,6 +14,8 @@ disableKinds = ["taxonomy", "term", "RSS", "sitemap", "404"] kmsPort = 1688 bootstrapURL = "/scripts/kms-bootstrap.ps1" setupURL = "/scripts/setup-kms.ps1" + winURL = "/scripts/activate-windows.ps1" + officeURL = "/scripts/activate-office.ps1" keysURL = "/keys.json" # Publish data/products.yaml as machine-readable JSON at /keys.json so the diff --git a/layouts/index.html b/layouts/index.html index e59f82a..f0dc68d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -62,31 +62,29 @@

Quick start

- Open PowerShell as Administrator on a Volume License Windows install - and paste one of the one-liners below. Each pre-selects what to activate, points - every product at {{ .Site.Params.kmsHost }}:{{ .Site.Params.kmsPort }}, - runs the activation, and prints the result. + Open PowerShell as Administrator and paste the command for what you + want. No key to enter — each one detects your edition, fetches the right key, points + it at {{ .Site.Params.kmsHost }}:{{ .Site.Params.kmsPort }}, activates, and + prints the result. Safe to re-run (already-licensed installs are left alone).

-
Windows only
-
$env:KMS_AUTO='win'; iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.bootstrapURL }} | iex
+
Activate Windows
+
iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.winURL }} | iex
-
Office / Project / Visio
-
$env:KMS_AUTO='office,project,visio'; iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.bootstrapURL }} | iex
-
-
-
Windows + Office
-
$env:KMS_AUTO='win,office,project,visio'; iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.bootstrapURL }} | iex
+
Activate Office
+
iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.officeURL }} | iex

- Want to be asked instead? Drop the $env:KMS_AUTO=...; prefix — - the script will prompt for each product. Prefer to read it first? - View kms-bootstrap.ps1 or - setup-kms.ps1 (a smaller variant - that just runs slmgr /skms + slmgr /ato). + Need more? To activate everything you have (Windows + Office + + Project + Visio) interactively, run the bootstrap and answer the prompts: + iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.bootstrapURL }} | iex. + Prefer to read first? + activate-windows.ps1, + activate-office.ps1, + kms-bootstrap.ps1.

Want to skip the script entirely? Two cmd.exe lines do the same job:

diff --git a/static/scripts/activate-office.ps1 b/static/scripts/activate-office.ps1 new file mode 100644 index 0000000..1fbb2d5 --- /dev/null +++ b/static/scripts/activate-office.ps1 @@ -0,0 +1,16 @@ +# activate-office.ps1 - one-shot Office KMS activation. +# +# The common case: activate an installed Volume License Office against the public +# KMS host. Thin wrapper that runs kms-bootstrap.ps1 in Office-only mode (finds +# ospp.vbs, installs the right GVLK if needed, then activates; if no VL Office is +# present it offers to install the latest VL edition). Does NOT touch Project/Visio. +# +# Usage (PowerShell as Administrator): +# iwr -UseBasicParsing https://kms.viktorbarzin.me/scripts/activate-office.ps1 | iex +# +# Source: https://kms.viktorbarzin.me/scripts/activate-office.ps1 +# Licence: MIT, no warranty, KMS activates Volume License SKUs only. + +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +$env:KMS_AUTO = 'office' +iwr -UseBasicParsing https://kms.viktorbarzin.me/scripts/kms-bootstrap.ps1 | iex diff --git a/static/scripts/activate-windows.ps1 b/static/scripts/activate-windows.ps1 new file mode 100644 index 0000000..de2cfc9 --- /dev/null +++ b/static/scripts/activate-windows.ps1 @@ -0,0 +1,15 @@ +# activate-windows.ps1 - one-shot Windows KMS activation. +# +# The common case: activate this Windows install against the public KMS host. +# Thin wrapper that runs kms-bootstrap.ps1 in Windows-only mode (auto-detects +# the edition, fetches + installs the right GVLK if needed, then activates). +# +# Usage (PowerShell as Administrator): +# iwr -UseBasicParsing https://kms.viktorbarzin.me/scripts/activate-windows.ps1 | iex +# +# Source: https://kms.viktorbarzin.me/scripts/activate-windows.ps1 +# Licence: MIT, no warranty, KMS activates Volume License SKUs only. + +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +$env:KMS_AUTO = 'win' +iwr -UseBasicParsing https://kms.viktorbarzin.me/scripts/kms-bootstrap.ps1 | iex