kms-website: dedicated activate-windows / activate-office one-liner commands
The two most common operations now have clean, key-free commands (no $env:KMS_AUTO prefix) that delegate to kms-bootstrap.ps1: iwr .../scripts/activate-windows.ps1 | iex iwr .../scripts/activate-office.ps1 | iex activate-office is Office-only (Project/Visio excluded — bundling them would prompt to *install* products you don't have, given the new install-offer). Quick Start now leads with these two; the interactive bootstrap stays as the "activate everything" option. Dropped the redundant KMS_AUTO combo cards. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
a0c100ab08
commit
d3c52b3bf7
4 changed files with 48 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -62,31 +62,29 @@
|
|||
<section id="quickstart">
|
||||
<h2>Quick start</h2>
|
||||
<p>
|
||||
Open <strong>PowerShell as Administrator</strong> on a Volume License Windows install
|
||||
and paste one of the one-liners below. Each pre-selects what to activate, points
|
||||
every product at <code>{{ .Site.Params.kmsHost }}:{{ .Site.Params.kmsPort }}</code>,
|
||||
runs the activation, and prints the result.
|
||||
Open <strong>PowerShell as Administrator</strong> and paste the command for what you
|
||||
want. No key to enter — each one detects your edition, fetches the right key, points
|
||||
it at <code>{{ .Site.Params.kmsHost }}:{{ .Site.Params.kmsPort }}</code>, activates, and
|
||||
prints the result. Safe to re-run (already-licensed installs are left alone).
|
||||
</p>
|
||||
<div class="quickstart-grid">
|
||||
<div class="card terminal">
|
||||
<div class="card-head"><span>Windows only</span><button class="btn-copy" data-copy-target="quickstart-win">Copy</button></div>
|
||||
<pre id="quickstart-win"><code>$env:KMS_AUTO='win'; iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.bootstrapURL }} | iex</code></pre>
|
||||
<div class="card-head"><span>Activate Windows</span><button class="btn-copy" data-copy-target="quickstart-win">Copy</button></div>
|
||||
<pre id="quickstart-win"><code>iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.winURL }} | iex</code></pre>
|
||||
</div>
|
||||
<div class="card terminal">
|
||||
<div class="card-head"><span>Office / Project / Visio</span><button class="btn-copy" data-copy-target="quickstart-office">Copy</button></div>
|
||||
<pre id="quickstart-office"><code>$env:KMS_AUTO='office,project,visio'; iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.bootstrapURL }} | iex</code></pre>
|
||||
</div>
|
||||
<div class="card terminal">
|
||||
<div class="card-head"><span>Windows + Office</span><button class="btn-copy" data-copy-target="quickstart-both">Copy</button></div>
|
||||
<pre id="quickstart-both"><code>$env:KMS_AUTO='win,office,project,visio'; iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.bootstrapURL }} | iex</code></pre>
|
||||
<div class="card-head"><span>Activate Office</span><button class="btn-copy" data-copy-target="quickstart-office">Copy</button></div>
|
||||
<pre id="quickstart-office"><code>iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.officeURL }} | iex</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<p class="hint">
|
||||
Want to be asked instead? Drop the <code>$env:KMS_AUTO=...;</code> prefix —
|
||||
the script will prompt for each product. Prefer to read it first?
|
||||
<a href="{{ .Site.Params.bootstrapURL }}">View kms-bootstrap.ps1</a> or
|
||||
<a href="{{ .Site.Params.setupURL }}">setup-kms.ps1</a> (a smaller variant
|
||||
that just runs <code>slmgr /skms</code> + <code>slmgr /ato</code>).
|
||||
Need more? To activate <strong>everything you have</strong> (Windows + Office +
|
||||
Project + Visio) interactively, run the bootstrap and answer the prompts:
|
||||
<code>iwr -UseBasicParsing https://{{ .Site.Params.siteHost }}{{ .Site.Params.bootstrapURL }} | iex</code>.
|
||||
Prefer to read first?
|
||||
<a href="{{ .Site.Params.winURL }}">activate-windows.ps1</a>,
|
||||
<a href="{{ .Site.Params.officeURL }}">activate-office.ps1</a>,
|
||||
<a href="{{ .Site.Params.bootstrapURL }}">kms-bootstrap.ps1</a>.
|
||||
</p>
|
||||
<p class="hint">Want to skip the script entirely? Two cmd.exe lines do the same job:</p>
|
||||
<div class="card terminal">
|
||||
|
|
|
|||
16
static/scripts/activate-office.ps1
Normal file
16
static/scripts/activate-office.ps1
Normal file
|
|
@ -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
|
||||
15
static/scripts/activate-windows.ps1
Normal file
15
static/scripts/activate-windows.ps1
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue