kms-website: 3-up KMS_AUTO quick-start cards + save-as downloads + clean script comments
- Replace single interactive one-liner with three side-by-side cards (Windows / Office+Project+Visio / Both) using $env:KMS_AUTO=...; the contract is already supported by kms-bootstrap.ps1 - Make Downloads links use the 'download' attribute so browsers prompt save-as instead of rendering .ps1 as text - Strip operator-side framing: kms-bootstrap.ps1 no longer says "this activation has been logged" and both scripts now point Source at the public mirror instead of forgejo.viktorbarzin.me
This commit is contained in:
parent
5da130be93
commit
8bcb64bf99
4 changed files with 38 additions and 13 deletions
|
|
@ -63,18 +63,30 @@
|
|||
<h2>Quick start</h2>
|
||||
<p>
|
||||
Open <strong>PowerShell as Administrator</strong> on a Volume License Windows install
|
||||
and paste the one-liner. The script asks what you want to activate (Windows, Office,
|
||||
Project, Visio), points each at <code>{{ .Site.Params.kmsHost }}:{{ .Site.Params.kmsPort }}</code>,
|
||||
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.
|
||||
</p>
|
||||
<div class="card terminal">
|
||||
<div class="card-head"><span>One-liner — interactive</span><button class="btn-copy" data-copy-target="quickstart-cmd">Copy</button></div>
|
||||
<pre id="quickstart-cmd"><code>iwr -UseBasicParsing https://{{ .Site.Params.kmsHost }}{{ .Site.Params.bootstrapURL }} | iex</code></pre>
|
||||
<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.kmsHost }}{{ .Site.Params.bootstrapURL }} | 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.kmsHost }}{{ .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.kmsHost }}{{ .Site.Params.bootstrapURL }} | iex</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<p class="hint">
|
||||
Prefer to read the script first? <a href="{{ .Site.Params.bootstrapURL }}">View kms-bootstrap.ps1</a>
|
||||
or <a href="{{ .Site.Params.setupURL }}">setup-kms.ps1</a> (a smaller, non-interactive variant
|
||||
that just points Windows at the KMS host and runs <code>slmgr /ato</code>).
|
||||
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>).
|
||||
</p>
|
||||
<p class="hint">Want to skip the script entirely? Two cmd.exe lines do the same job:</p>
|
||||
<div class="card terminal">
|
||||
|
|
@ -241,11 +253,11 @@ cscript ospp.vbs /dstatus :: verify --LICENSED--</code></pre>
|
|||
<p>Both scripts are open-source, single-file, no dependencies. Read before running.</p>
|
||||
<ul class="dl-list">
|
||||
<li>
|
||||
<a href="{{ .Site.Params.bootstrapURL }}" target="_blank" rel="noopener">kms-bootstrap.ps1 ↗</a>
|
||||
<a href="{{ .Site.Params.bootstrapURL }}" download="kms-bootstrap.ps1" rel="noopener">kms-bootstrap.ps1 ↓</a>
|
||||
<span class="muted"> — interactive: prompts for Windows / Office / Project / Visio and activates each.</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ .Site.Params.setupURL }}" target="_blank" rel="noopener">setup-kms.ps1 ↗</a>
|
||||
<a href="{{ .Site.Params.setupURL }}" download="setup-kms.ps1" rel="noopener">setup-kms.ps1 ↓</a>
|
||||
<span class="muted"> — minimal: <code>slmgr /skms</code> + <code>/ato</code>. No Office install.</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -142,6 +142,19 @@ section > p:first-of-type { margin-top: 0; }
|
|||
.card pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
|
||||
.card pre code { color: var(--text); font-size: 13.5px; line-height: 1.6; }
|
||||
|
||||
.quickstart-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
margin: 16px 0;
|
||||
}
|
||||
.quickstart-grid .card { margin: 0; }
|
||||
.quickstart-grid .card pre { padding: 14px 16px; }
|
||||
.quickstart-grid .card pre code { font-size: 12.5px; word-break: break-all; white-space: pre-wrap; }
|
||||
@media (max-width: 980px) {
|
||||
.quickstart-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.card details summary, details summary {
|
||||
cursor: pointer; padding: 14px 18px; font-weight: 600; user-select: none;
|
||||
list-style: none;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
# Custom KMS host:
|
||||
# $env:KMS_HOST = 'kms.example.com'; iwr ... | iex
|
||||
#
|
||||
# Source: https://forgejo.viktorbarzin.me/viktor/kms-website
|
||||
# Source: https://kms.viktorbarzin.me/scripts/kms-bootstrap.ps1
|
||||
# Licence: MIT, no warranty, KMS activates Volume License SKUs only.
|
||||
|
||||
[CmdletBinding()]
|
||||
|
|
@ -183,4 +183,4 @@ if ($installList.Count -gt 0) { Install-Odt-Bundle $installList }
|
|||
Write-Host ""
|
||||
Step "Done."
|
||||
Write-Host " Re-run any time to re-check status. KMS licences renew automatically every 7 days."
|
||||
Write-Host " Operator-side: this activation has been logged. Privacy notes: https://kms.viktorbarzin.me/#faq"
|
||||
Write-Host " Privacy: see https://kms.viktorbarzin.me/#faq"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
# Or with a custom KMS host (e.g. self-hosted):
|
||||
# $env:KMS_HOST = 'kms.example.com'; iwr ... | iex
|
||||
#
|
||||
# Source: https://forgejo.viktorbarzin.me/viktor/kms-website
|
||||
# Source: https://kms.viktorbarzin.me/scripts/setup-kms.ps1
|
||||
# Licence: MIT, no warranty, KMS activates Volume License SKUs only.
|
||||
|
||||
[CmdletBinding()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue