Files
site-plata-upravleniya-rf/backup/240700/blog/02-kms-service/index.html
2024-07-24 17:12:33 +03:00

239 lines
43 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"> <head><!-- Global Metadata --><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/svg+xml" href="/favicon/favicon.ico"><meta name="generator" content="Astro v4.7.1"><link rel="preload" href="/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin><link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin><!-- Canonical URL --><link rel="canonical" href="https://astro-sphere-demo.vercel.app/blog/02-kms-service/"><!-- Primary Meta Tags --><title>Активация Windows в организации через KMS server | Плата Управления РФ</title><meta name="title" content="Активация Windows в организации через KMS server | Плата Управления РФ"><meta name="description" content="Небольшой гайд об активации операционной windows 7/8/10/11 server без установки crack и отключения антивируса."><!-- Open Graph / Facebook --><meta property="og:type" content="website"><meta property="og:url" content="https://astro-sphere-demo.vercel.app/blog/02-kms-service/"><meta property="og:title" content="Активация Windows в организации через KMS server | Плата Управления РФ"><meta property="og:description" content="Небольшой гайд об активации операционной windows 7/8/10/11 server без установки crack и отключения антивируса."><meta property="og:image" content="https://astro-sphere-demo.vercel.app/img04.jpg"><!-- Twitter --><meta property="twitter:card" content="summary_large_image"><meta property="twitter:url" content="https://astro-sphere-demo.vercel.app/blog/02-kms-service/"><meta property="twitter:title" content="Активация Windows в организации через KMS server | Плата Управления РФ"><meta property="twitter:description" content="Небольшой гайд об активации операционной windows 7/8/10/11 server без установки crack и отключения антивируса."><meta property="twitter:image" content="https://astro-sphere-demo.vercel.app/img04.jpg"><!-- Sitemap --><link rel="sitemap" href="/sitemap-index.xml"><!-- RSS Feed --><link rel="alternate" type="application/rss+xml" title="Активация Windows в организации через KMS server | Плата Управления РФ" href="https://astro-sphere-demo.vercel.app/rss.xml"><!-- Global Scripts --><script src="/js/theme.js"></script><script src="/js/scroll.js"></script><script src="/js/animate.js"></script><!-- <ViewTransitions /> --><link rel="stylesheet" href="/_astro/_slug_.0h5GVtX4.css"><script type="module" src="/_astro/hoisted.BGfjo5mV.js"></script></head> <body> <header id="header" class="fixed top-0 w-full h-16 z-50 " data-astro-cid-3ef6ksr2> <div class="w-full h-full mx-auto px-5 max-w-screen-md"> <div class="relative h-full w-full" data-astro-cid-3ef6ksr2> <div class="absolute left-0 top-1/2 -translate-y-1/2 flex gap-1 font-semibold" data-astro-cid-3ef6ksr2> <a href="/" class="flex gap-1 text-current hover:text-black dark:hover:text-white transition-colors duration-300 ease-in-out" data-astro-cid-3ef6ksr2> <svg class="size-6 fill-current" data-astro-cid-3ef6ksr2> <use href="/static/logo.svg" data-astro-cid-3ef6ksr2></use> </svg> <div data-astro-cid-3ef6ksr2> Плата Управления РФ </div> </a> </div> <div class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2" data-astro-cid-3ef6ksr2> <nav class="hidden md:flex items-center justify-center text-sm gap-1" data-astro-cid-3ef6ksr2> <a href="/" class="h-8 rounded-full px-3 text-current flex items-center justify-center transition-colors duration-300 ease-in-out hover:bg-black/5 dark:hover:bg-white/20 hover:text-black dark:hover:text-white" data-astro-cid-3ef6ksr2> Главная </a><a href="/work" class="h-8 rounded-full px-3 text-current flex items-center justify-center transition-colors duration-300 ease-in-out hover:bg-black/5 dark:hover:bg-white/20 hover:text-black dark:hover:text-white" data-astro-cid-3ef6ksr2> Работа </a><a href="/blog" class="h-8 rounded-full px-3 flex items-center justify-center transition-colors duration-300 ease-in-out bg-black dark:bg-white text-white dark:text-black" data-astro-cid-3ef6ksr2> Блог </a><a href="/projects" class="h-8 rounded-full px-3 text-current flex items-center justify-center transition-colors duration-300 ease-in-out hover:bg-black/5 dark:hover:bg-white/20 hover:text-black dark:hover:text-white" data-astro-cid-3ef6ksr2> Проекты </a> </nav> </div> <div class="buttons absolute right-0 top-1/2 -translate-y-1/2 flex gap-1" data-astro-cid-3ef6ksr2> <a href="/search" aria-label="Search blog posts and projects on Плата Управления РФ" class="hidden md:flex size-9 rounded-full p-2 items-center justify-center bg-transparent hover:bg-black/5 dark:hover:bg-white/20 stroke-current hover:stroke-black hover:dark:stroke-white border border-black/10 dark:border-white/25 transition-colors duration-300 ease-in-out" data-astro-cid-3ef6ksr2> <svg class="size-full" data-astro-cid-3ef6ksr2> <use href="/ui.svg#search" data-astro-cid-3ef6ksr2></use> </svg> </a> <a href="/rss.xml" target="_blank" aria-label="Rss feed for Плата Управления РФ" class="hidden md:flex size-9 rounded-full p-2 items-center justify-center bg-transparent hover:bg-black/5 dark:hover:bg-white/20 stroke-current hover:stroke-black hover:dark:stroke-white border border-black/10 dark:border-white/25 transition-colors duration-300 ease-in-out" data-astro-cid-3ef6ksr2> <svg class="size-full" data-astro-cid-3ef6ksr2> <use href="/ui.svg#rss" data-astro-cid-3ef6ksr2></use> </svg> </a> <button id="header-theme-button" aria-label="Toggle light and dark theme" class="hidden md:flex size-9 rounded-full p-2 items-center justify-center bg-transparent hover:bg-black/5 dark:hover:bg-white/20 stroke-current hover:stroke-black hover:dark:stroke-white border border-black/10 dark:border-white/25 transition-colors duration-300 ease-in-out" data-astro-cid-3ef6ksr2> <svg class="size-full block dark:hidden" data-astro-cid-3ef6ksr2> <use href="/ui.svg#sun" data-astro-cid-3ef6ksr2></use> </svg> <svg class="size-full hidden dark:block" data-astro-cid-3ef6ksr2> <use href="/ui.svg#moon" data-astro-cid-3ef6ksr2></use> </svg> </button> <button id="header-drawer-button" aria-label="Toggle drawer open and closed" class="flex md:hidden size-9 rounded-full p-2 items-center justify-center bg-transparent hover:bg-black/5 dark:hover:bg-white/20 stroke-current hover:stroke-black hover:dark:stroke-white border border-black/10 dark:border-white/25 transition-colors duration-300 ease-in-out" data-astro-cid-3ef6ksr2> <svg id="drawer-open" class="size-full" data-astro-cid-3ef6ksr2> <use href="/ui.svg#menu" data-astro-cid-3ef6ksr2></use> </svg> <svg id="drawer-close" class="size-full" data-astro-cid-3ef6ksr2> <use href="/ui.svg#x" data-astro-cid-3ef6ksr2></use> </svg> </button> </div> </div> </div> </header> <script>
function toggleDrawer() {
const drawer = document.getElementById("drawer")
const drawerButton = document.getElementById("header-drawer-button")
drawer?.classList.toggle("open")
drawerButton?.classList.toggle("open")
}
function initializeDrawerButton() {
const drawerButton = document.getElementById("header-drawer-button")
drawerButton?.addEventListener("click", toggleDrawer)
}
document.addEventListener("astro:after-swap", initializeDrawerButton)
initializeDrawerButton()
</script> <div id="drawer" class="fixed inset-0 h-0 z-40 overflow-hidden flex flex-col items-center justify-center md:hidden bg-neutral-100 dark:bg-neutral-900 transition-[height] duration-300 ease-in-out" data-astro-cid-hxtyo74s> <nav class="flex flex-col items-center space-y-2" data-astro-cid-hxtyo74s> <a href="/" class="flex items-center justify-center px-3 py-1 rounded-full text-current hover:text-black dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/20 transition-colors duration-300 ease-in-out" data-astro-cid-hxtyo74s> Главная </a><a href="/work" class="flex items-center justify-center px-3 py-1 rounded-full text-current hover:text-black dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/20 transition-colors duration-300 ease-in-out" data-astro-cid-hxtyo74s> Работа </a><a href="/blog" class="flex items-center justify-center px-3 py-1 rounded-full hover:text-black dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/20 transition-colors duration-300 ease-in-out pointer-events-none bg-black dark:bg-white text-white dark:text-black" data-astro-cid-hxtyo74s> Блог </a><a href="/projects" class="flex items-center justify-center px-3 py-1 rounded-full text-current hover:text-black dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/20 transition-colors duration-300 ease-in-out" data-astro-cid-hxtyo74s> Проекты </a> </nav> <div class="flex gap-1 mt-5" data-astro-cid-hxtyo74s> <a href="/search" aria-label="Search blog posts and projects on Плата Управления РФ" class="size-9 rounded-full p-2 items-center justify-center bg-transparent hover:bg-black/5 dark:hover:bg-white/20 stroke-current hover:stroke-black hover:dark:stroke-white border border-black/10 dark:border-white/25 transition-colors duration-300 ease-in-out" data-astro-cid-hxtyo74s> <svg class="size-full" data-astro-cid-hxtyo74s> <use href="/ui.svg#search" data-astro-cid-hxtyo74s></use> </svg> </a> <a href="/rss.xml" target="_blank" aria-label="Rss feed for Плата Управления РФ" class="size-9 rounded-full p-2 items-center justify-center bg-transparent hover:bg-black/5 dark:hover:bg-white/20 stroke-current hover:stroke-black hover:dark:stroke-white border border-black/10 dark:border-white/25 transition-colors duration-300 ease-in-out" data-astro-cid-hxtyo74s> <svg class="size-full" data-astro-cid-hxtyo74s> <use href="/ui.svg#rss" data-astro-cid-hxtyo74s></use> </svg> </a> <button id="drawer-theme-button" aria-label="Toggle light and dark theme" class="size-9 rounded-full p-2 items-center justify-center bg-transparent hover:bg-black/5 dark:hover:bg-white/20 stroke-current hover:stroke-black hover:dark:stroke-white border border-black/10 dark:border-white/25 transition-colors duration-300 ease-in-out" data-astro-cid-hxtyo74s> <svg class="block dark:hidden size-full" data-astro-cid-hxtyo74s> <use href="/ui.svg#sun" data-astro-cid-hxtyo74s></use> </svg> <svg class="hidden dark:block size-full" data-astro-cid-hxtyo74s> <use href="/ui.svg#moon" data-astro-cid-hxtyo74s></use> </svg> </button> </div> </div> <main> <div class="pt-36 pb-5"> <div class="w-full h-full mx-auto px-5 max-w-screen-md"> <div class="animate"> <div> <a href="/blog" class="group w-fit p-1.5 gap-1.5 text-sm flex items-center border rounded hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 transition-colors duration-300 ease-in-out"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="stroke-current group-hover:stroke-black group-hover:dark:stroke-white"> <line x1="19" y1="12" x2="5" y2="12" class="scale-x-0 group-hover:scale-x-100 translate-x-3 group-hover:translate-x-0 transition-all duration-300 ease-in-out"></line> <polyline points="12 19 5 12 12 5" class="translate-x-1 group-hover:translate-x-0 transition-all duration-300 ease-in-out"></polyline> </svg> <div class="w-full group-hover:text-black group-hover:dark:text-white transition-colors duration-300 ease-in-out">
Вернуться в blog </div> </a> <div class="flex flex-wrap text-sm uppercase mt-12 gap-3 opacity-75"> <div class="flex items-center gap-2"> <svg class="size-5 stroke-current"> <use href="/ui.svg#calendar"></use> </svg> 11 июн. 2024 г. </div> <div class="flex items-center gap-2"> <svg class="size-5 stroke-current"> <use href="/ui.svg#book-open"></use> </svg> 5 min read </div> </div> <h1 class="text-3xl font-semibold text-black dark:text-white mt-2"> Активация Windows в организации через KMS server </h1> <div class="mt-1"> Небольшой гайд об активации операционной windows 7/8/10/11 server без установки crack и отключения антивируса. </div> </div> </div> </div> </div> <div class="flex-1 py-5"> <div class="w-full h-full mx-auto px-5 max-w-screen-md"> <div class="animate"> <div> <article> <blockquote>
<p>Дисклаймер. Данная статья предоставляется в образовательных целях и не предполагает использование рассмотренного продукта для незаконной активации Windows или Office. Мы не поддерживает использование нелицензионного ПО ни в каком виде.</p>
</blockquote>
<p>В данной статье будет описан процесс настройки сервера активации продуктов Microsoft в небольшой корпоративной сети с использованием дистрибутива от @Wind4, доступного на GitHub по ссылке <a href="https://github.com/Wind4/vlmcsd">https://github.com/Wind4/vlmcsd</a>. Для этого потребуется операционная система Debian/Ubuntu, CentOS/Fedora или любая другая по вашему усмотрению, включая даже BusyBox, если вы имеете достаточные навыки для работы с ним.</p>
<h1 id="установка">Установка</h1>
<h3 id="система-требований">Система требований</h3>
<table><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>Процессор</td><td>1 ядро / > 2 Ггц</td></tr><tr><td>Озу</td><td>> 1Гб</td></tr></tbody></table>
<p>Этого достаточно для создания только KMS-сервера, но ничто не мешает использовать этот сервер для размещения ботов и других полезных инструментов, не забудьте увеличить мощность по потребности.</p>
<ul>
<li>Далее все делаем из под <strong>root</strong> прав.</li>
</ul>
<h2 id="шаг-первый-подготовка">Шаг первый, подготовка</h2>
<h3 id="centosfedorarhel">CentOS\Fedora\RHEL</h3>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">dnf</span><span style="color:#9ECBFF"> update</span></span>
<span class="line"><span style="color:#B392F0">dnf</span><span style="color:#9ECBFF"> install</span><span style="color:#9ECBFF"> git</span><span style="color:#9ECBFF"> gcc</span><span style="color:#9ECBFF"> make</span><span style="color:#9ECBFF"> netstat</span><span style="color:#E1E4E8"> </span></span>
<span class="line"></span></code></pre>
<h3 id="debianubuntu">debian\Ubuntu</h3>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">apt</span><span style="color:#9ECBFF"> update</span></span>
<span class="line"><span style="color:#B392F0">apt</span><span style="color:#9ECBFF"> install</span><span style="color:#9ECBFF"> git</span><span style="color:#9ECBFF"> gcc</span><span style="color:#9ECBFF"> make</span><span style="color:#9ECBFF"> netstat</span></span>
<span class="line"></span></code></pre>
<h4 id="установки-сетевого-экрана-firewall">Установки сетевого экрана (firewall)</h4>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">apt</span><span style="color:#9ECBFF"> install</span><span style="color:#9ECBFF"> iptables</span></span>
<span class="line"></span></code></pre>
<p>или</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">apt</span><span style="color:#9ECBFF"> install</span><span style="color:#9ECBFF"> firewalld</span></span>
<span class="line"></span></code></pre>
<p>смотря кому что нравиться, <strong>можно и без него</strong>.</p>
<h2 id="шаг-второй">Шаг второй</h2>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">git</span><span style="color:#9ECBFF"> clone</span><span style="color:#9ECBFF"> https://github.com/Wind4/vlmcsd</span></span>
<span class="line"><span style="color:#79B8FF">cd</span><span style="color:#9ECBFF"> vlmcsd</span></span>
<span class="line"><span style="color:#B392F0">make</span></span>
<span class="line"><span style="color:#79B8FF">cd</span><span style="color:#9ECBFF"> bin</span></span>
<span class="line"><span style="color:#B392F0">./vlmcsd</span></span>
<span class="line"></span></code></pre>
<p>Далее наблюдаем ответ сервера</p>
<blockquote>
<p>Connecting to 127.0.0.1:1688 … successful
Sending activation request (KMS V6) 1 of 1 -> 55041-00206-559-475403-03-1076-6002.0000-1482020 (3A1C049600B60076)</p>
</blockquote>
<p>По умолчанию vlmcsd слушает на стандартном порту KMS — TCP/1688.</p>
<h2 id="шаг-третий-firewall">Шаг третий firewall</h2>
<p>Если вы не хотите затруднять себя настройкой firewalld\iptables, можно пропустить этот шаг. Однако, если вам необходимо разрешить подключения клиентов к серверу через firewalld\iptables, вам нужно выполнить следующие команды:</p>
<p><strong>firewall-cmd</strong></p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">firewall-cmd</span><span style="color:#79B8FF"> --list-port</span></span>
<span class="line"><span style="color:#B392F0">firewall-cmd</span><span style="color:#79B8FF"> --zone=public</span><span style="color:#79B8FF"> --add-port=1688/tcp</span></span>
<span class="line"><span style="color:#B392F0">firewall-cmd</span><span style="color:#79B8FF"> --reload</span></span>
<span class="line"><span style="color:#B392F0">netstat</span><span style="color:#79B8FF"> -ntlp</span><span style="color:#F97583"> |</span><span style="color:#B392F0"> grep</span><span style="color:#9ECBFF"> LISTEN</span></span>
<span class="line"></span></code></pre>
<p><strong>iptables</strong></p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">iptables</span><span style="color:#79B8FF"> -A</span><span style="color:#9ECBFF"> INPUT</span><span style="color:#79B8FF"> -p</span><span style="color:#9ECBFF"> tcp</span><span style="color:#79B8FF"> --dport</span><span style="color:#79B8FF"> 1688</span><span style="color:#79B8FF"> -j</span><span style="color:#9ECBFF"> ACCEPT</span></span>
<span class="line"><span style="color:#B392F0">service</span><span style="color:#9ECBFF"> iptables</span><span style="color:#9ECBFF"> save</span></span>
<span class="line"><span style="color:#B392F0">service</span><span style="color:#9ECBFF"> iptables</span><span style="color:#9ECBFF"> restart</span></span>
<span class="line"><span style="color:#B392F0">netstat</span><span style="color:#79B8FF"> -ntlp</span><span style="color:#F97583"> |</span><span style="color:#B392F0"> grep</span><span style="color:#9ECBFF"> LISTEN</span></span>
<span class="line"></span></code></pre>
<h2 id="шаг-четвертый-автозапуск-демона">Шаг четвертый Автозапуск демона</h2>
<p>Делаем автоматический старт при запуске сервера</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">cp</span><span style="color:#9ECBFF"> vlmcsd</span><span style="color:#9ECBFF"> /usr/bin</span></span>
<span class="line"><span style="color:#B392F0">cp</span><span style="color:#9ECBFF"> vlmcs</span><span style="color:#9ECBFF"> /usr/bin</span></span>
<span class="line"><span style="color:#B392F0">touch</span><span style="color:#9ECBFF"> /etc/systemd/system/kms-autostart.service</span></span>
<span class="line"><span style="color:#B392F0">chmod</span><span style="color:#79B8FF"> 664</span><span style="color:#9ECBFF"> /etc/systemd/system/kms-autostart.service</span></span>
<span class="line"><span style="color:#B392F0">nano</span><span style="color:#9ECBFF"> /etc/systemd/system/kms-autostart.service</span></span>
<span class="line"></span></code></pre>
<p>Добавляем в файл следущие параметры</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#E1E4E8">[Unit]</span></span>
<span class="line"><span style="color:#E1E4E8">Description</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">Microsoft</span><span style="color:#B392F0"> KMS</span><span style="color:#9ECBFF"> Server</span></span>
<span class="line"><span style="color:#E1E4E8">After</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">network.target</span></span>
<span class="line"><span style="color:#E1E4E8">After</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">network-online.target</span></span>
<span class="line"><span style="color:#E1E4E8">Wants</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">network-online.target</span></span>
<span class="line"><span style="color:#E1E4E8"> </span></span>
<span class="line"><span style="color:#E1E4E8">[Service]</span></span>
<span class="line"><span style="color:#E1E4E8">Type</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">oneshot</span></span>
<span class="line"><span style="color:#E1E4E8">ExecStart</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">/usr/bin/vlmcsd</span></span>
<span class="line"><span style="color:#E1E4E8">RemainAfterExit</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">yes</span></span>
<span class="line"><span style="color:#E1E4E8">LimitNOFILE</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">65536</span></span>
<span class="line"><span style="color:#E1E4E8"> </span></span>
<span class="line"><span style="color:#E1E4E8">[Install]</span></span>
<span class="line"><span style="color:#E1E4E8">WantedBy</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">multi-user.target</span></span>
<span class="line"></span></code></pre>
<p>Выпускаем демона</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">systemctl</span><span style="color:#9ECBFF"> daemon-reload</span></span>
<span class="line"><span style="color:#B392F0">systemctl</span><span style="color:#9ECBFF"> start</span><span style="color:#9ECBFF"> kms-autostart.service</span></span>
<span class="line"><span style="color:#B392F0">systemctl</span><span style="color:#9ECBFF"> status</span><span style="color:#9ECBFF"> kms-autostart.service</span></span>
<span class="line"><span style="color:#B392F0">systemctl</span><span style="color:#9ECBFF"> enable</span><span style="color:#9ECBFF"> kms-autostart.service</span></span>
<span class="line"></span></code></pre>
<h2 id="шаг-пятый-запись-на-dns-сервер-в-доменной-сети">Шаг пятый, запись на DNS сервер в доменной сети</h2>
<p>Команада для <strong>PowerShell</strong></p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#79B8FF">Add-DnsServerResourceRecord</span><span style="color:#F97583"> -</span><span style="color:#E1E4E8">Srv </span><span style="color:#F97583">-</span><span style="color:#E1E4E8">Name </span><span style="color:#9ECBFF">"_VLMCS._tcp"</span><span style="color:#F97583"> -</span><span style="color:#E1E4E8">ZoneName </span><span style="color:#9ECBFF">"fipi.pro"</span><span style="color:#F97583"> -</span><span style="color:#E1E4E8">DomainName </span><span style="color:#9ECBFF">"192.168.0.2"</span><span style="color:#F97583"> -</span><span style="color:#E1E4E8">Priority </span><span style="color:#79B8FF">0</span><span style="color:#F97583"> -</span><span style="color:#E1E4E8">Weight </span><span style="color:#79B8FF">0</span><span style="color:#F97583"> -</span><span style="color:#E1E4E8">Port </span><span style="color:#79B8FF">1688</span></span>
<span class="line"></span></code></pre>
<p>Редактируйте под себя.</p>
<ul>
<li>ZoneName “fipi.pro” Зона в вашей доменной сети.</li>
<li>192.168.0.2 IP адрес вашего Linux сервера со службой KMS.</li>
</ul>
<p>Теперь все хосты Windows (и Office) в домене будут автоматически активироваться на KMS сервере, если на них установлен публичный ключ корпоративной активации (GVLK).</p>
<h3 id="вот-краткий-список-часто-исполбзуюмых-ключей">Вот краткий список часто исполбзуюмых ключей.</h3>
<table><thead><tr><th>Operating system edition</th><th>KMS Client Product Key</th></tr></thead><tbody><tr><td>Windows Server 2022 Standard</td><td>VDYBN-27WPP-V4HQT-9VMD4-VMK7H</td></tr><tr><td>Windows Server 2022 Datacenter</td><td>WX4NM-KYWYW-QJJR4-XV3QB-6VM33</td></tr><tr><td>Windows 11 \ 10 Pro</td><td>W269N-WFGWX-YVC9B-4J6C9-T83GX</td></tr><tr><td>Windows 8.1 Pro</td><td>GCRJD-8NW9H-F2CDX-CCM8D-9D6T9</td></tr><tr><td>Windows 7 Professional</td><td>FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4</td></tr></tbody></table>
<p>В для остальных версий ключи подбирайте здесь:</p>
<blockquote>
<p><a href="https://docs.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys">https://docs.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys</a></p>
</blockquote>
<h2 id="шаг-активации-клинтов">Шаг активации клинтов</h2>
<p>Для ручной активации Windows нужно задать GVLK ключ для вашей версии Windows, адрес сервера KMS активации и выполнить команду активации. Используются следующие команды (например, для Windows Server 2022 Std):</p>
<p>Команада для <strong>PowerShell</strong> от <em><strong>прав Администратора</strong></em></p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#E1E4E8">slmgr.vbs </span><span style="color:#F97583">-</span><span style="color:#E1E4E8">ipk VDYBN</span><span style="color:#F97583">-</span><span style="color:#E1E4E8">27WPP</span><span style="color:#F97583">-</span><span style="color:#E1E4E8">V4HQT</span><span style="color:#F97583">-</span><span style="color:#E1E4E8">9VMD4</span><span style="color:#F97583">-</span><span style="color:#E1E4E8">VMK7H</span></span>
<span class="line"><span style="color:#E1E4E8">slmgr.vbs </span><span style="color:#F97583">-</span><span style="color:#E1E4E8">skms </span><span style="color:#79B8FF">192.168</span><span style="color:#E1E4E8">.</span><span style="color:#79B8FF">0.2</span></span>
<span class="line"><span style="color:#E1E4E8">slmgr.vbs </span><span style="color:#F97583">-</span><span style="color:#E1E4E8">ato</span></span>
<span class="line"></span></code></pre>
<p>Для Активации Microsoft Office 2021/2019</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#E1E4E8">cd C:\Program Files\Microsoft Office\Office16</span></span>
<span class="line"><span style="color:#E1E4E8">cscript ospp.vbs </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">sethst: </span><span style="color:#79B8FF">192.168</span><span style="color:#E1E4E8">.</span><span style="color:#79B8FF">0.2</span></span>
<span class="line"><span style="color:#E1E4E8">cscript ospp.vbs </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">act</span></span>
<span class="line"></span></code></pre>
<p>В некоторых версия windows команда будет такая</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#E1E4E8">cd </span><span style="color:#9ECBFF">'C:\Program Files\Microsoft Office\Office16\'</span></span>
<span class="line"><span style="color:#E1E4E8">cscript ospp.vbs </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">sethst: </span><span style="color:#79B8FF">192.168</span><span style="color:#E1E4E8">.</span><span style="color:#79B8FF">0.2</span></span>
<span class="line"><span style="color:#E1E4E8">cscript ospp.vbs </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">act</span></span>
<span class="line"></span></code></pre>
<p>Для Активации Microsoft Office 2016</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#E1E4E8">cd C:\Program Files\Microsoft Office\Office15</span></span>
<span class="line"><span style="color:#E1E4E8">cscript ospp.vbs </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">sethst: </span><span style="color:#79B8FF">192.168</span><span style="color:#E1E4E8">.</span><span style="color:#79B8FF">0.2</span></span>
<span class="line"><span style="color:#E1E4E8">cscript ospp.vbs </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">act</span></span>
<span class="line"></span></code></pre>
<h2 id="шаг-активации-windows-server-2022">Шаг активации Windows server 2022</h2>
<p>Качаем оригинальную версию Winodws Server 2022</p>
<blockquote>
<p><a href="https://www.microsoft.com/ru-ru/evalcenter/evaluate-windows-server-2022">https://www.microsoft.com/ru-ru/evalcenter/evaluate-windows-server-2022</a></p>
</blockquote>
<p>И до ввода ключа активации получаем ServerStandardEval</p>
<p>Проверяем возможные версии для обновления:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#E1E4E8">DISM </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">online </span><span style="color:#F97583">/</span><span style="color:#79B8FF">Get-TargetEditions</span></span>
<span class="line"></span></code></pre>
<p>В данном случае мы хотим выполнить апгрейд Eval редакции до Retail версии Windows Server 2022 Standard. Найдите и скопируйте GVLK ключ для этой версии и редакции Windows Server из таблицы и выполните команду:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#E1E4E8">dism </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">online </span><span style="color:#F97583">/</span><span style="color:#79B8FF">set-edition</span><span style="color:#E1E4E8">:ServerStandard </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">productkey:xxxxx</span><span style="color:#F97583">-</span><span style="color:#E1E4E8">xxxxx</span><span style="color:#F97583">-</span><span style="color:#E1E4E8">xxxxx</span><span style="color:#F97583">-</span><span style="color:#E1E4E8">xxxxx</span><span style="color:#F97583">-</span><span style="color:#E1E4E8">xxxxx </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">accepteula</span></span>
<span class="line"></span></code></pre>
<p>Перезагружаемся и деалем активацию как было описанно выше.</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#E1E4E8">slmgr </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">skms </span><span style="color:#79B8FF">192.168</span><span style="color:#E1E4E8">.</span><span style="color:#79B8FF">0.2</span><span style="color:#E1E4E8">:</span><span style="color:#79B8FF">1688</span></span>
<span class="line"><span style="color:#E1E4E8">slmgr </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">ato</span></span>
<span class="line"></span></code></pre>
<h4 id="вдруг-пригодиться">Вдруг пригодиться</h4>
<p>Удалите текущий GVLK ключ:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#E1E4E8">slmgr.vbs </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">upk</span></span>
<span class="line"><span style="color:#E1E4E8">slmgr.vbs </span><span style="color:#F97583">/</span><span style="color:#E1E4E8">cpky</span></span>
<span class="line"></span></code></pre>
<p>Проверьте, что Windows активирована:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ps1"><code><span class="line"><span style="color:#79B8FF">Get-CimInstance</span><span style="color:#E1E4E8"> SoftwareLicensingProduct </span><span style="color:#F97583">-</span><span style="color:#E1E4E8">Filter </span><span style="color:#9ECBFF">"Name like 'Windows%'"</span><span style="color:#F97583"> |</span><span style="color:#F97583"> where</span><span style="color:#E1E4E8"> { </span><span style="color:#79B8FF">$_</span><span style="color:#E1E4E8">.PartialProductKey } </span><span style="color:#F97583">|</span><span style="color:#E1E4E8"> select Description</span><span style="color:#F97583">,</span><span style="color:#E1E4E8"> LicenseStatus</span></span>
<span class="line"></span></code></pre> </article> <div class="grid grid-cols-1 sm:grid-cols-2 gap-4"> <a href="/blog/05-zabbix-api" class="group p-4 gap-3 flex items-center border rounded-lg hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 blend"> <div class="order-2 w-full h-full group-hover:text-black group-hover:dark:text-white blend"> <div class="flex flex-wrap gap-2"> <div class="text-sm uppercase">
Prev
</div> </div> <div class="font-semibold mt-3 text-black dark:text-white"> Групповые политики GPO для Zabbix Agent с использованием магии API </div> </div> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="order-1 stroke-current group-hover:stroke-black group-hover:dark:stroke-white rotate-180"> <line x1="5" y1="12" x2="19" y2="12" class="scale-x-0 group-hover:scale-x-100 translate-x-4 group-hover:translate-x-1 transition-all duration-300 ease-in-out"></line> <polyline points="12 5 19 12 12 19" class="translate-x-0 group-hover:translate-x-1 transition-all duration-300 ease-in-out"></polyline> </svg> </a> <a href="/blog/01-driver-amentmen-x99-a4-update-w11" class="group p-4 gap-3 flex items-center border rounded-lg hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 transition-colors duration-300 ease-in-out"> <div class="w-full h-full text-right group-hover:text-black group-hover:dark:text-white blend"> <div class="text-sm uppercase">
Next
</div> <div class="font-semibold mt-3 text-black dark:text-white"> Драйвера Amentmen X99-A4 + обновление до Windows 11 </div> </div> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="stroke-current group-hover:stroke-black group-hover:dark:stroke-white"> <line x1="5" y1="12" x2="19" y2="12" class="scale-x-0 group-hover:scale-x-100 translate-x-4 group-hover:translate-x-1 transition-all duration-300 ease-in-out"></line> <polyline points="12 5 19 12 12 19" class="translate-x-0 group-hover:translate-x-1 transition-all duration-300 ease-in-out"></polyline> </svg> </a> </div> </div> </div> </div> </div> </main> <footer class="relative bg-white dark:bg-black"> <div class="animate"> <section class="py-5"> <div class="w-full h-full mx-auto px-5 max-w-screen-md"> <div class="flex items-center justify-center sm:justify-end"> <button id="back-to-top" aria-label="Back to top of page" class="group flex w-fit p-1.5 gap-1.5 text-sm items-center border rounded hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 transition-colors duration-300 ease-in-out"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="stroke-current group-hover:stroke-black group-hover:dark:stroke-white rotate-90"> <line x1="19" y1="12" x2="5" y2="12" class="scale-x-0 group-hover:scale-x-100 translate-x-3 group-hover:translate-x-0 transition-all duration-300 ease-in-out"></line> <polyline points="12 19 5 12 12 5" class="translate-x-1 group-hover:translate-x-0 transition-all duration-300 ease-in-out"></polyline> </svg> <div class="w-full group-hover:text-black group-hover:dark:text-white transition-colors duration-300 ease-in-out">
В начало
</div> </button> </div> </div> </section> <section class=" py-5 overflow-hidden whitespace-nowrap border-t border-black/10 dark:border-white/25"> <div class="w-full h-full mx-auto px-5 max-w-screen-md"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-3"> <div class="flex flex-col items-center sm:items-start"> <a href="/" class="flex gap-1 w-fit font-semibold text-current hover:text-black dark:hover:text-white transition-colors duration-300 ease-in-out"> <svg class="size-6 fill-current"> <use href="/brand.svg#brand"></use> </svg> Плата Управления РФ </a> </div> <div class="flex gap-2 justify-center sm:justify-end items-center"> <span class="relative flex h-3 w-3"> <span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-300"></span> <span class="relative inline-flex rounded-full h-3 w-3 bg-green-500"></span> </span>
Все системы в норме
</div> </div> </div> </section> <section class=" py-5 overflow-hidden whitespace-nowrap border-t border-black/10 dark:border-white/25"> <div class="w-full h-full mx-auto px-5 max-w-screen-md"> <div class="h-full grid grid-cols-1 sm:grid-cols-2 gap-3"> <div class="order-2 sm:order-1 flex flex-col items-center justify-center sm:items-start"> <div class="legal"> <a href="/legal/terms" class="text-current hover:text-black dark:hover:text-white transition-colors duration-300 ease-in-out">
Условия использования
</a> |
<a href="/legal/privacy" class="text-current hover:text-black dark:hover:text-white transition-colors duration-300 ease-in-out">
Конфиденциальности
</a> </div> <div class="text-sm mt-2">
&copy; 2024 | @iTKeyS
</div> </div> <div class="order-1 sm:order-2 flex justify-center sm:justify-end"> <div class="flex flex-wrap gap-1 items-center justify-center"> <a href="mailto:krasilnikoff.tihon@gmail.com" target="_blank" aria-label="Плата Управления РФ on Email" class="group size-10 rounded-full p-2 items-center justify-center hover:bg-black/5 dark:hover:bg-white/20 blend"> <svg class="size-full fill-current group-hover:fill-black group-hover:dark:fill-white blend"> <use href="/social.svg#email"></use> </svg> </a><a href="https://git.fipi.pro/Plata_Upravleniya_RF" target="_blank" aria-label="Плата Управления РФ on Github" class="group size-10 rounded-full p-2 items-center justify-center hover:bg-black/5 dark:hover:bg-white/20 blend"> <svg class="size-full fill-current group-hover:fill-black group-hover:dark:fill-white blend"> <use href="/social.svg#github"></use> </svg> </a><a href="https://www.youtube.com/@plata_upravleniya_rf" target="_blank" aria-label="Плата Управления РФ on YouTube" class="group size-10 rounded-full p-2 items-center justify-center hover:bg-black/5 dark:hover:bg-white/20 blend"> <svg class="size-full fill-current group-hover:fill-black group-hover:dark:fill-white blend"> <use href="/social.svg#youtube"></use> </svg> </a><a href="https://t.me/plata_upravleniya_rf" target="_blank" aria-label="Плата Управления РФ on Telegram" class="group size-10 rounded-full p-2 items-center justify-center hover:bg-black/5 dark:hover:bg-white/20 blend"> <svg class="size-full fill-current group-hover:fill-black group-hover:dark:fill-white blend"> <use href="/social.svg#telegram"></use> </svg> </a><a href="https://t.me/plata_upravleniya_rf_bot" target="_blank" aria-label="Плата Управления РФ on Telegram BOT" class="group size-10 rounded-full p-2 items-center justify-center hover:bg-black/5 dark:hover:bg-white/20 blend"> <svg class="size-full fill-current group-hover:fill-black group-hover:dark:fill-white blend"> <use href="/social.svg#telegram"></use> </svg> </a> </div> </div> </div> </div> </section> </div> </footer> <script>
function goBackToTop(event) {
event.preventDefault()
window.scrollTo({
top: 0,
behavior: "smooth"
})
}
function inintializeBackToTop() {
const backToTop = document.getElementById("back-to-top")
backToTop?.addEventListener("click", goBackToTop)
}
document.addEventListener("astro:after-swap", inintializeBackToTop)
inintializeBackToTop()
</script> </body></html>