-
Notifications
You must be signed in to change notification settings - Fork 427
/
ReadMe.html
639 lines (614 loc) · 37.7 KB
/
ReadMe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>KMS_VL_ALL</title>
<style>
#nav {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 200px;
overflow: auto;
}
main {
position: fixed;
top: 0;
left: 200px;
right: 0;
bottom: 0;
overflow: auto;
}
.innertube {
margin: 15px;
}
* html main {
height: 100%;
width: 100%;
}
td, h1, h2, h3, h4, h5, p, ul, ol, li {
page-break-inside: avoid;
}
</style>
</head>
<body>
<main>
<div class="innertube">
<h1 id="Overview">KMS_VL_ALL - Smart Activation Script</h1>
<ul>
<li>A batch script(s) to automate the activation of supported Windows and Office products using local KMS server emulator or an external server.</li>
</ul>
<ul>
<li>Designed to be unattended and smart enough not to override the permanent activation of products (Windows or Office),
<div>only non-activated products will be KMS-activated (if supported).</div></li>
</ul>
<ul>
<li>The ultimate feature of this solution when installed, will provide 24/7 activation, whenever the system itself requests it (renewal, reactivation, hardware change, Edition upgrade, new Office...), without needing interaction from the user.</li>
</ul>
<ul>
<li>Some security programs will report infected files due to KMS emulating (see source code near the end),
<div>this is false-positive, as long as you download the file from the trusted Home Page.</div></li>
</ul>
<ul>
<li>Home Page:
<div><a href="https://forums.mydigitallife.net/posts/838808/" target="_blank">https://forums.mydigitallife.net/posts/838808/</a><br />
Backup links:<br />
<a href="https://pastebin.com/cpdmr6HZ" target="_blank">https://pastebin.com/cpdmr6HZ</a><br />
<a href="https://textuploader.com/1dav8" target="_blank">https://textuploader.com/1dav8</a></div>
</li>
</ul>
<hr />
<br />
<h2 id="How">How does it work?</h2>
<ul>
<li>Key Management Service (KMS) is a genuine activation method provided by Microsoft for volume licensing customers (organizations, schools or governments).
<div>The machines in those environments (called KMS clients) activate via the environment KMS host server (authorized Microsoft's licensing key), not via Microsoft activation servers.<br />
For more info, see <a href="https://www.microsoft.com/Licensing/servicecenter/Help/FAQDetails.aspx?id=201#215" target="_blank">here</a> and <a href="https://technet.microsoft.com/en-us/library/ee939272(v=ws.10).aspx#kms-overview" target="_blank">here</a>.</div></li>
</ul>
<ul>
<li>By design, the KMS activation period lasts up to <strong>180 Days</strong> (6 Months) at max, with the ability to renew and reinstate the period at any time.
<div>With the proper auto renewal configuration, it will be a continuous activation (essentially permanent).</div></li>
</ul>
<ul>
<li>KMS Emulators (server and client) are sophisticated tools based on the reversed engineered KMS protocol.
<div>It mimics the KMS server/client communications, and provide a clean activation for the supported KMS clients, without altering or hacking any system files integrity.</div></li>
</ul>
<ul>
<li>Updates for Windows or Office do not affect or block KMS activation, only a new KMS protocol will not work with the local emulator.</li>
</ul>
<ul>
<li>The mechanism of <strong>SppExtComObjPatcher</strong> makes it act as a ready-on-request KMS server, providing instant activation without external schedule tasks or manual intervention.
<div>Including auto renewal, auto activation of volume Office afterward, reactivation because of hardware change, date change, windows or office edition change... etc.<br />
On Windows 7, later installed Office may require initiating the first activation vis OSPP.vbs or the script, or opening Office program.</div></li>
</ul>
<ul>
<li>That feature makes use of the "Image File Execution Options" technique to work, programmed as an Application Verifier custom provider for the system file responsible for the KMS process.
<div>Hence, OS itself handle the DLL injection, allowing the hook to intercept the KMS activation request and write the response on the fly.<br />
On Windows 8.1/10, it also handles the localhost restriction for KMS activation and redirects any local/private IP address as it were external (different stack).</div></li>
</ul>
<ul>
<li>The activation script consists of advanced checks and commands of Windows Management Instrumentation Command <strong>WMIC</strong> utility, that query the properties and executes the methods of Windows and Office licensing classes,
<div>providing a native activation processing, which is almost identical to the official VBScript tools slmgr.vbs and ospp.vbs, but in an automated way.</div></li>
</ul>
<ul>
<li>The script(s) make these changes to the system (if the emulator is used):
<div>copy or link the file <code>"C:\Windows\System32\SppExtComObjHook.dll"</code><br />
add the hook registry keys to <code>"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options"</code><br />
add osppsvc.exe keys to <code>"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform"</code><br />
create schedule task <code>"\Microsoft\Windows\SoftwareProtectionPlatform\SvcTrigger"</code> on Windows 8 and later</div></li>
</ul>
<hr />
<br />
<h2 id="Supported">Supported Products</h2>
<p>Volume-capable:</p>
<ul>
<li>Windows 10/11:<br />
Enterprise, Enterprise LTSC/LTSB, Enterprise G, Enterprise multi-session, Enterprise, Education, Pro, Pro Workstation, Pro Education, Home, Home Single Language, Home China</li><br />
<li>Windows 8.1:<br />
Enterprise, Pro, Pro with Media Center, Core, Core Single Language, Core China, Pro for Students, Bing, Bing Single Language, Bing China, Embedded Industry Enterprise/Pro/Automotive</li><br />
<li>Windows 8:<br />
Enterprise, Pro, Pro with Media Center, Core, Core Single Language, Core China, Embedded Industry Enterprise/Pro</li><br />
<li>Windows 10/11 on <strong>ARM64</strong> is supported. Windows 8/8.1/10/11 <strong>N editions</strong> variants are also supported (e.g. Pro N)</li><br />
<li>Windows 7:<br />
Enterprise /N/E, Professional /N/E, Embedded POSReady/ThinPC</li><br />
<li>Windows Server 2022/2019/2016:<br />
LTSC editions (Standard, Datacenter, Essentials, Cloud Storage, Azure Core, Server ARM64), SAC editions (Standard ACor, Datacenter ACor, Azure Datacenter)</li><br />
<li>Windows Server 2012 R2:<br />
Standard, Datacenter, Essentials, Cloud Storage</li><br />
<li>Windows Server 2012:<br />
Standard, Datacenter, MultiPoint Standard, MultiPoint Premium</li><br />
<li>Windows Server 2008 R2:<br />
Standard, Datacenter, Enterprise, MultiPoint, Web, HPC Cluster</li><br />
<li>Office Volume 2010 / 2013 / 2016 / 2019 / 2021</li>
</ul>
<p>______________________________</p>
<p>These editions are only KMS-activatable for <em>45</em> days at max:</p>
<ul>
<li>Windows 10/11 Home edition variants</li>
<li>Windows 8.1 Core edition variants, Pro with Media Center, Pro for Students</li>
</ul>
<p>These editions are only KMS-activatable for <em>30</em> days at max:</p>
<ul>
<li>Windows 8 Core edition variants, Pro with Media Center</li>
</ul>
<p>Notes:</p>
<ul>
<li>supported <u>Windows</u> products do not need volume conversion, only the GVLK (KMS key) is needed, which the script will install accordingly.</li>
<li>KMS activation on Windows 7 has a limitation related to OEM Activation 2.0 and Windows marker. For more info, see <a href="https://support.microsoft.com/en-us/help/942962" target="_blank">here</a> and <a href="https://technet.microsoft.com/en-us/library/ff793426(v=ws.10).aspx#activation-of-windows-oem-computers" target="_blank">here</a>. To verify the activation possibility before attempting, see <a href="https://forums.mydigitallife.net/posts/1553139/" target="_blank">this</a>.</li>
</ul>
<p>______________________________</p>
<h3>Unsupported Products</h3>
<ul>
<li>Office MSI Retail 2010/2013, Office 2010 C2R Retail</li>
<li>Office UWP (Windows 10/11 Apps)</li>
<li>Windows editions which do not support KMS activation by design:
<div>Windows Evaluation Editions<br />
Windows 7 (Starter, HomeBasic, HomePremium, Ultimate)<br />
Windows 10 (Cloud "S", IoTEnterprise, IoTEnterpriseS, ProfessionalSingleLanguage... etc)<br />
Windows Server (Server Foundation, Storage Server, Home Server 2011... etc)</div></li>
</ul>
<p>______________________________</p>
<h3>Office C2R 'Your license isn't genuine' notification banner</h3>
<ul>
<li>Office Click-to-Run builds (since February 2021) that are activated with KMS checks the existence of the KMS server name in the registry.</li>
<li>If KMS server is not present, a banner is shown in Office programs notifying that "Office isn't licensed properly", see <a href="https://i.imgur.com/gLFxssD.png" target="_blank">here</a>.</li>
<li>Therefore in manual mode, <code>KeyManagementServiceName</code> value containing a non-existent IP address <strong>0.0.0.0</strong> will be kept in the below registry keys:
<div><code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform</code><br />
<code>HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform</code></div></li>
<li>This is perfectly fine to keep, and it does not affect Windows or Office activation.</li>
<li>Fore more explanation, visit <a href="https://infohost.github.io/office-license-is-not-genuine" target="_blank">https://infohost.github.io/office-license-is-not-genuine</a></li>
</ul>
<hr />
<br />
<h2 id="OfficeR2V">Office Retail to Volume</h2>
<p>Office Retail must be converted to Volume first before it can be activated with KMS</p>
<p>specifically, Office Click-to-Run products, whether installed from ISO (e.g. ProPlus2019Retail.img) or using Office Deployment Tool.</p>
<p><b>Starting version 36, the activation script implements automatic license conversion for Office C2R.</b></p>
<p>Notes:</p>
<ul>
<li>Supported Click-to-Run products: Office 365 (Microsoft 365 Apps), Office 2021 / 2019 / 2016, Office 2013</li>
<li>Activated Office Retail or Subscription products will be skipped from conversion</li>
<li>Office 365 itself does not have volume licenses, therefore it will be converted to Office Mondo licenses</li>
<li>Windows 10/11: Office 2016 products will be converted with corresponding Office 2019 licenses (if RTM detected)</li>
<li>Windows 8.1: Office 2016/2019 products will be converted with corresponding Office 2021 licenses (if RTM detected)</li>
<li>Office Professional suite will be converted with Office Professional Plus licenses</li>
<li>Office HomeBusiness/HomeStudent suites will be converted with Office Standard licenses</li>
<li>Office 2013 products follow the same logic, but handled separately</li>
</ul>
<p>Alternatively, if the automatic conversion did not work, or if you prefer to use the standalone converter script:<br />
<a href="https://forums.mydigitallife.net/posts/1150042/" target="_blank">Office-C2R-Retail2Volume</a></p>
<p>You can also use other tools that can convert licensing:</p>
<ul>
<li><a href="https://forums.mydigitallife.net/posts/1125229/" target="_blank">OfficeRTool</a> (supports converting and activating Office UWP)</li>
<li><a href="https://forums.mydigitallife.net/threads/78950/" target="_blank">Office Tool Plus</a></li>
</ul>
<hr />
<br />
<h1 id="Using">How To Use</h1>
<ul>
<li>Remove any other KMS solutions.</li>
</ul>
<ul>
<li>Temporary suspend Antivirus realtime protection, or exclude the downloaded file and the extracted folder from scanning to avoid quarantine.</li>
</ul>
<ul>
<li>If you are using <strong>Windows Defender</strong> on Windows 11, 10 or 8.1, the script automatically adds an exclusion for <code>C:\Windows\System32\SppExtComObjHook.dll</code><br />
therefore, <u>it's best not to disable Windows Defender</u>, and instead exclude the downloaded file and the extracted folder before running the script(s).</li>
</ul>
<ul>
<li>Extract the downloaded file contents to a simple path without special characters or long spaces.</li>
</ul>
<ul>
<li>Administrator rights are required to run the activation script(s).</li>
</ul>
<ul>
<li>KMS_VL_ALL offer 3 flavors of activation modes.</li>
</ul>
<hr />
<br />
<h2 id="Modes">Activation Modes</h2>
<br />
<h3 id="ModesAut">Auto Renewal</h3>
<p>Recommended mode, where you only need to install the activation emulator once. Afterward, the system itself handle and renew activation per schedule.</p>
<p>To run this mode:</p>
<ul>
<li>run <strong>AutoRenewal-Setup.cmd</strong>, press Y to approve the installation</li>
<li>it will automatically execute <strong>Activate.cmd</strong></li>
</ul>
<p>If you use Antivirus software, make sure to exclude this file from real-time protection:<br /><code>C:\Windows\System32\SppExtComObjHook.dll</code></p>
<p>If you later installed Volume Office product(s), it will be auto activated in this mode.</p>
<p>Additionally, If you want to convert and activate Office C2R, renew the activation, or activate new products:</p>
<ul>
<li>just run <strong>Activate.cmd</strong></li>
</ul>
<p>On Windows 8 and later, the script <em>duplicate</em> inbox system schedule task <code>SvcRestartTaskLogon</code> to <code>SvcTrigger</code><br />
this is just a precaution step to insure that the auto renewal period is evaluated and respected, it's not directly related to activation itself, and you can manually remove it.</p>
<p>To remove this mode:</p>
<ul>
<li>run <strong>AutoRenewal-Setup.cmd</strong>, press Y to approve the removal</li>
</ul>
<p>____________________________________________________________</p>
<br />
<h3 id="ModesMan">Manual</h3>
<p>No remnants mode, where you only need to run <strong>Activate.cmd</strong>, and then any KMS emulator traces will be cleared from the system.</p>
<p>To run this mode:</p>
<ul>
<li>make sure that auto renewal solution is not installed, or remove it</li>
<li>then, just run <strong>Activate.cmd</strong></li>
</ul>
<p>You will have to run <strong>Activate.cmd</strong> again to activate newly installed products (e.g. Office) or if Windows edition is switched.</p>
<p>You will have to run <strong>Activate.cmd</strong> again to activate before the KMS activation period expires.</p>
<p>You can run and activate anytime during that period to renew the period to the max interval.</p>
<p>If <strong>Activate.cmd</strong> is accidentally terminated before it completes the process, run the script again to clean any leftovers.</p>
<p>____________________________________________________________</p>
<br />
<h3 id="ModesExt">External</h3>
<p>Standalone mode, where you only need the file <strong>Activate.cmd</strong> alone, previously refered to as "Online KMS".</p>
<p>You can use <strong>Activate.cmd</strong> to activate against trusted external KMS server, without needing other files or using local KMS emulator functions.</p>
<p>The external server can be a web address, or a network IP address (local LAN or VM).</p>
<p>To run this mode:</p>
<ul>
<li>edit <strong>Activate.cmd</strong> with Notepad (or text editor)</li>
<li>change <code>External=0</code> to 1</li>
<li>change <code>KMS_IP=172.16.0.2</code> to the IP/address of the server</li>
<li>save the script, and then run</li>
</ul>
<p>If you later installed Volume Office product(s), it will be auto activated if the external server is still connected.</p>
<p>The used server address will be left registered in the system to allow activated products to auto renew against it,<br />
if the server is no longer available, you will need to run the mode again with a new available server.</p>
<p>If you want to clear the server registration and traces, run <strong>Activate.cmd</strong> in Manual mode once.<br />
or else, use this external script: <a href="https://github.com/abbodi1406/WHD/raw/master/scripts/Clear-KMS-Cache-20190329.zip" target="_blank">Clear-KMS-Cache</a></p>
<hr />
<br />
<h2 id="Options">Additional Options</h2>
<br />
<h3 id="OptAct">Activation Choice</h3>
<p><strong>Activate.cmd</strong> is set by default to process and try to activate both Windows and Office.</p>
<p>However, if you want to turn OFF processing Windows <b>or</b> Office, for whatever reason:</p>
<ul>
<li>you afraid it may override permanent activation</li>
<li>you want to speed up the operation (you have Windows or Office already permanently activated)</li>
<li>you want to activate Windows or Office later on your terms</li>
</ul>
<p>To do that:</p>
<ul>
<li>edit <strong>Activate.cmd</strong> with Notepad (or text editor)</li>
<li>change <code>ActWindows=1</code> to zero 0 if tou want to skip Windows</li>
<li>change <code>ActOffice=1</code> to zero 0 if you want to skip Office</li>
<li>save the script, and then run</li>
</ul>
<p>Notice:<br />
this turn OFF is not very effective if Windows or Office installation is already Volume (GVLK installed),<br />
because the system itself may try to reach and KMS activate the products, especially on Windows 8 and later.</p>
<p>______________________________</p>
<h3 id="OptC2R">Convert Office C2R-R2V</h3>
<p><strong>Activate.cmd</strong> is set by default to auto convert detected Office C2R Retail to Volume (except activated Retail products).</p>
<p>However, if you prefer to turn OFF this function:</p>
<ul>
<li>edit <strong>Activate.cmd</strong> with Notepad (or text editor)</li>
<li>change <code>AutoR2V=1</code> to zero 0</li>
<li>save the script, and then run</li>
</ul>
<p>______________________________</p>
<h3 id="OptW10">Skip Windows 10/11 KMS 2038</h3>
<p><strong>Activate.cmd</strong> is set by default to check and skip Windows activation if KMS 2038 is detected.</p>
<p>However, if you want to revert to normal KMS activation:</p>
<ul>
<li>edit <strong>Activate.cmd</strong> with Notepad (or text editor)</li>
<li>change <code>SkipKMS38=1</code> to zero 0</li>
<li>save the script, and then run</li>
</ul>
<p>Notice:<br />
On Windows 10/11, if <code>SkipKMS38</code> is ON (default), Windows will always get checked and processed, even if <code>Process Windows</code> is No</p>
<p>______________________________</p>
<h3 id="OptKMS">Advanced KMS Options</h3>
<p>You can manually modify these KMS-related options by editing <strong>Activate.cmd</strong> with Notepad before running.</p>
<ul>
<li>
<strong>KMS_RenewalInterval</strong>
<br />
Set the interval for KMS auto renewal schedule (default is 10080 = weekly)<br />
this only have much effect on Auto Renewal or External modes<br />
allowed values in minutes: from 15 to 43200</li>
</ul>
<ul>
<li>
<strong>KMS_ActivationInterval</strong>
<br />
Set the interval for KMS reattempt schedule for failed activation renewal, or unactivated products to attemp activation<br />
this does not affect the overall KMS period (180 Days), or the renewal schedule<br />
allowed values in minutes: from 15 to 43200</li>
</ul>
<ul>
<li>
<strong>KMS_HWID</strong>
<br />
Set the Hardware Hash for local KMS emulator server (only affect Windows 8.1/10)<br />
<b>0x</b> prefix is mandatory</li>
</ul>
<ul>
<li>
<strong>KMS_Port</strong>
<br />
Set TCP port for KMS communications</li>
</ul>
<p>______________________________</p>
<h3 id="Switch">Command line Switches</h3>
<p><strong>Activate.cmd</strong> switches</p>
<ul>
<li>Unattended (auto exit):<br /><code>/u</code></li>
</ul>
<ul>
<li>Silent run (implies Unattended):<br /><code>/s</code></li>
</ul>
<ul>
<li>Silent and create simple log:<br /><code>/s /L</code></li>
</ul>
<ul>
<li>Debug mode (implies Unattended):<br /><code>/d</code></li>
</ul>
<ul>
<li>Silent Debug mode:<br /><code>/s /d</code></li>
</ul>
<ul>
<li>External activation mode:<br /><code>/e pseudo.kms.server</code></li>
</ul>
<ul>
<li>Process Windows only:<br /><code>/w</code></li>
</ul>
<ul>
<li>Process Office only:<br /><code>/o</code></li>
</ul>
<ul>
<li>Turn OFF Office C2R-R2V conversion:<br /><code>/c</code></li>
</ul>
<ul>
<li>Do not skip Windows 10/11 KMS38:<br /><code>/x</code></li>
</ul>
<p><strong>AutoRenewal-Setup.cmd</strong> switches</p>
<ul>
<li>Unattended (auto install or remove and exit):<br /><code>/u</code></li>
</ul>
<ul>
<li>Silent run (implies Unattended):<br /><code>/s</code></li>
</ul>
<ul>
<li>Silent and create simple log:<br /><code>/s /L</code></li>
</ul>
<ul>
<li>Debug mode (implies Unattended):<br /><code>/d</code></li>
</ul>
<ul>
<li>Silent Debug mode:<br /><code>/s /d</code></li>
</ul>
<ul>
<li>Force installation regardless detection (implies Unattended):<br /><code>/i</code></li>
</ul>
<ul>
<li>Force removal regardless detection (implies Unattended):<br /><code>/r</code></li>
</ul>
<ul>
<li>Do not clear KMS cache:<br /><code>/k</code></li>
</ul>
<p>
<strong>Rules:</strong>
</p>
<ul>
<li>All switches are case-insensitive, works in any order, but must be separated with spaces.</li>
</ul>
<ul>
<li>You can specify multiple switches together.</li>
</ul>
<ul>
<li>If Activate.cmd switch <code>/e</code> is specified without server address, it will be changed to Manual or Auto (depending on SppExtComObjHook.dll presence).</li>
</ul>
<ul>
<li>If Activate.cmd switches <code>/o /w</code> are specified together, the last one takes precedence.</li>
</ul>
<ul>
<li>If AutoRenewal-Setup.cmd switches <code>/i /r</code> are specified together, the last one takes precedence.</li>
</ul>
<ul>
<li>Log switch <code>/L</code> only works with Silent switch <code>/s</code></li>
</ul>
<p>
<strong>Examples:</strong>
</p>
<pre>
<code>
Activate.cmd /s /e pseudo.kms.server
Activate.cmd /d /w /o
Activate.cmd /u /x /e pseudo.kms.server
AutoRenewal-Setup.cmd /s /r /k
AutoRenewal-Setup.cmd /i /u
AutoRenewal-Setup.cmd /s /l
</code>
</pre>
<p>
<strong>Remarks:</strong>
</p>
<ul>
<li>In general, Windows batch scripts do not work well with unusual folder paths and files name, which contain non-ascii and unicode characters, long paths and spaces, or some of these special characters <code>` ~ ; ' , ! @ % ^ & ( ) [ ] { } + =</code></li>
</ul>
<ul>
<li>KMS_VL_ALL scripts are coded to correctly handle those limitations, as much as possible.</li>
</ul>
<ul>
<li>By default, even explorer context menu option "Run as administrator" will fail to execute on some of those paths.<br />
In order to fix that, open command prompt as administrator, then copy/paste and execute these commands:</li>
</ul>
<pre>
<code>
set _r=^%SystemRoot^%
reg add HKLM\SOFTWARE\Classes\batfile\shell\runas\command /f /v "" /t REG_EXPAND_SZ /d "%_r%\System32\cmd.exe /C \"\"%1\" %*\""
reg add HKLM\SOFTWARE\Classes\cmdfile\shell\runas\command /f /v "" /t REG_EXPAND_SZ /d "%_r%\System32\cmd.exe /C \"\"%1\" %*\""
</code>
</pre>
<hr />
<br />
<h2 id="Check">Check Activation Status</h2>
<p>You can use those scripts to check the status of Windows and Office products.</p>
<p>Both scripts do not require running as administrator, a double-click to run is enough.</p>
<p><strong>Check-Activation-Status-vbs</strong>:</p>
<ul>
<li>query and execute official licensing VBScripts: slmgr.vbs for Windows, ospp.vbs for Office</li>
<li>shows the activation expiration date for Windows</li>
<li>Office 2010 ospp.vbs shows a very little info</li>
</ul>
<p><strong>Check-Activation-Status-wmic</strong>:</p>
<ul>
<li>query and execute native WMI functions, no vbscripting involved</li>
<li>shows extra more info (SKU ID, key channel)</li>
<li>shows the activation expiration date for all products</li>
<li>shows more detailed info for Office 2010</li>
<li>can show the status of Office UWP apps</li>
<li>implement vNextDiag.ps1 functions to detect new Office 365 vNext licenses and subscriptions</li>
</ul>
<hr />
<br />
<h2 id="Setup">Setup Preactivate</h2>
<p>To preactivate the system during Windows installation, copy <code>$oem$</code> folder to <code>sources</code> folder in the installation installation media (ISO/USB).</p>
<p>If you already use another <strong>setupcomplete.cmd</strong>, rename this one to <strong>KMS_VL_ALL.cmd</strong> or similar name<br />
then add a command to run it in your setupcomplete.cmd, example:<br />
<code>call KMS_VL_ALL.cmd</code></p>
<p>Notes:</p>
<ul>
<li>The included <strong>setupcomplete.cmd</strong> is set by default to <em>Auto Renewal</em> mode. You can also change it to <em>External</em> mode</li>
<li>The included <strong>setupcomplete.cmd</strong> support the <em>Additional Options</em> described previously, except Command line Switches.</li>
<li>Later, if you want to uninstall the project, use <strong>AutoRenewal-Setup.cmd</strong></li>
<li>On Windows 8 and later, running setupcomplete.cmd is disabled if the default installed key for the edition is OEM Channel.</li>
</ul>
<hr />
<br />
<h2 id="Debug">Troubleshooting</h2>
<p>If the activation failed at first attempt:</p>
<ul>
<li>Run <strong>Activate.cmd</strong> one more time.</li>
<li>Reboot the system and try again.</li>
<li>Verify that Antivirus software is not blocking <code>C:\Windows\SppExtComObjHook.dll</code></li>
<li>Check System integrity, open command prompt as administrator, and execute these command respectively:<br />
for Windows 11, 10, or 8.1 only: <code>Dism /online /Cleanup-Image /RestoreHealth</code><br />
then, for any OS: <code>sfc /scannow</code></li>
</ul>
<p>if Auto-Renewal is installed already, but the activation started to fail, run <b>AutoRenewal-Setup.cmd</b> to Uninstall Completely then run it again for installation.</p>
<p>For Windows 7, if you have the errors described in <a href="https://support.microsoft.com/en-us/help/4487266" target="_blank">KB4487266</a>, execute the suggested fix.</p>
<p>If you got Error <strong>0xC004F035</strong> on Windows 7, it means your Machine is not qualified for KMS activation. For more info, see <a href="https://support.microsoft.com/en-us/help/942962" target="_blank">here</a> and <a href="https://technet.microsoft.com/en-us/library/ff793426(v=ws.10).aspx#activation-of-windows-oem-computers" target="_blank">here</a>.</p>
<p>If you got Error <strong>0x80040154</strong>, it is mostly related to misconfigured Windows 10/11 KMS38 activation, rearm the system and start over, or revert to Normal KMS.</p>
<p>If you got Error <strong>0xC004E015</strong>, it is mostly related to misconfigured Office retail to volume conversion, try to reinstall system licenses:<br /><code>cscript //Nologo %SystemRoot%\System32\slmgr.vbs /rilc</code></p>
<p>If you got one of these Errors on Windows Server, verify that the system is properly converted from Evaluation to Retail/Volume:<br /><strong>0xC004E016</strong> - <strong>0xC004F014</strong> - <strong>0xC004F034</strong></p>
<p>If the activation still failed after the above tips, you may enable the debug mode to help determine the reason:</p>
<ul>
<li>run <strong>Activate.cmd</strong> with command line switch: <code>Activate.cmd /d</code></li>
<li><strong>OR</strong></li>
<li>edit <strong>Activate.cmd</strong> with Notepad (or text editor)</li>
<li>change <code>_Debug=0</code> to 1</li>
<li>save the script, and then run</li>
<li>wait until the operation is finished and Debug.log is created</li>
<li>upload or post the log file on the home page (MDL forums) for inspection</li>
</ul>
<p>If you have issues with Office activation, or got undesired or duplicate licenses (e.g. Office 2016 and 2019):</p>
<ul>
<li>Download Office Scrubber pack from <a href="https://forums.mydigitallife.net/posts/1466365/" target="_blank">here</a>.</li>
<li>To get rid of any conflicted licenses, run <strong>Uninstall_Licenses.cmd</strong>, then you must start any Office program to repair the licensing.</li>
<li>You may also try <strong>Uninstall_Keys.cmd</strong> for similar manner.</li>
<li>If you wish to remove Office and leftovers completely and start clean:<br />
uninstall Office normally from Control Panel / Programs and Feature<br />
then run <strong>Full_Scrub.cmd</strong><br />
afterward, install new Office.</li>
</ul>
<p>Final tip, you may try to rebuild licensing Tokens.dat as suggested in <a href="https://support.microsoft.com/en-us/help/2736303" target="_blank">KB2736303</a> (this will require to repair Office afterwards).</p>
<hr />
<br />
<h2 id="Source">Source Code</h2>
<br />
<h3 id="srcAvrf">SppExtComObjHookAvrf</h3>
<p>
<a href="https://forums.mydigitallife.net/posts/1508167/" target="_blank">https://forums.mydigitallife.net/posts/1508167/</a>
<br />
<a href="https://app.box.com/s/mztbabp2n21vvjmk57cl1puel0t088bs" target="_blank">https://app.box.com/s/mztbabp2n21vvjmk57cl1puel0t088bs</a>
</p>
<h4 id="visual-studio">Visual Studio:</h4>
<p>launch shortcut Developer Command Prompt for VS 2017 (or 2019)<br />
execute:<br />
<code>MSBuild SppExtComObjHook.sln /p:configuration="Release" /p:platform="Win32"</code><br />
<code>MSBuild SppExtComObjHook.sln /p:configuration="Release" /p:platform="x64"</code></p>
<h4 id="mingw-gcc">MinGW GCC:</h4>
<p>download mingw-w64<br />
<a href="https://sourceforge.net/projects/mingw-w64/files/i686-8.1.0-release-win32-sjlj-rt_v6-rev0.7z" target="_blank">Windows x86</a><br />
<a href="https://sourceforge.net/projects/mingw-w64/files/x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z" target="_blank">Windows x64</a><br />
both can compile 32-bit and 64-bit binaries<br />
extract and place SppExtComObjHook folder inside mingw32 or mingw64 folder<br />
run <code>_compile.cmd</code></p>
<p>______________________________</p>
<h3 id="srcDebg">SppExtComObjPatcher</h3>
<h4 id="visual-studio-1">Visual Studio:</h4>
<p>
<a href="https://forums.mydigitallife.net/posts/1457558/" target="_blank">https://forums.mydigitallife.net/posts/1457558/</a>
<br />
<a href="https://app.box.com/s/mztbabp2n21vvjmk57cl1puel0t088bs" target="_blank">https://app.box.com/s/mztbabp2n21vvjmk57cl1puel0t088bs</a>
</p>
<h4 id="mingw-gcc-1">MinGW GCC:</h4>
<p>
<a href="https://forums.mydigitallife.net/posts/1462101/" target="_blank">https://forums.mydigitallife.net/posts/1462101/</a>
</p>
<hr />
<br />
<h2 id="Credits">Credits</h2>
<p>
<a href="https://forums.mydigitallife.net/posts/1508167/" target="_blank">namazso</a> - SppExtComObjHook, IFEO AVrf custom provider.<br />
<a href="https://forums.mydigitallife.net/posts/862774" target="_blank">qad</a> - SppExtComObjPatcher, IFEO Debugger.<br />
<a href="https://forums.mydigitallife.net/posts/1448556/" target="_blank">Mouri_Naruto</a> - SppExtComObjPatcher-DLL<br />
<a href="https://forums.mydigitallife.net/posts/1462101/" target="_blank">os51</a> - SppExtComObjPatcher ported to MinGW GCC, Retail/MAK checks examples.<br />
<a href="https://forums.mydigitallife.net/posts/309737/" target="_blank">MasterDisaster</a> - Original script, WMI methods.<br />
<a href="https://forums.mydigitallife.net/members/1108726/" target="_blank">Windows_Addict</a> - Features suggestion, ideas, testing, and co-enhancing.<br />
<a href="https://forums.mydigitallife.net/posts/1296482/" target="_blank">qewpal</a> - KMS-VL-ALL script.<br />
<a href="https://forums.mydigitallife.net/members/846864/" target="_blank">NormieLyfe</a> - GVLK categorize, Office checks help.<br />
<a href="https://forums.mydigitallife.net/members/120394/" target="_blank">rpo</a>, <a href="https://forums.mydigitallife.net/members/2574/" target="_blank">mxman2k</a>, <a href="https://forums.mydigitallife.net/members/58504/" target="_blank">BAU</a>, <a href="https://forums.mydigitallife.net/members/presto1234.647219/" target="_blank">presto1234</a> - scripting suggestions.<br />
<a href="https://forums.mydigitallife.net/members/80361/" target="_blank">Nucleus</a>, <a href="https://forums.mydigitallife.net/members/104688/" target="_blank">Enthousiast</a>, <a href="https://forums.mydigitallife.net/members/293479/" target="_blank">s1ave77</a>, <a href="https://forums.mydigitallife.net/members/325887/" target="_blank">l33tisw00t</a>, <a href="https://forums.mydigitallife.net/members/77147/" target="_blank">LostED</a>, <a href="https://forums.mydigitallife.net/members/1023044/" target="_blank">Sajjo</a> and MDL Community for interest, feedback and assistance.</p>
<p>
<a href="https://forums.mydigitallife.net/posts/1343297/" target="_blank">abbodi1406</a> - KMS_VL_ALL author</p>
<h2 id="acknow">Acknowledgements</h2>
<p>
<a href="https://forums.mydigitallife.net/forums/51/" target="_blank">MDL forums</a> - the home of the latest and current emulators.<br />
<a href="https://forums.mydigitallife.net/posts/838505" target="_blank">mikmik38</a> - first reversed source of KMSv5 and KMSv6.<br />
<a href="https://forums.mydigitallife.net/threads/41010/" target="_blank">CODYQX4</a> - easy to use KMSEmulator source.<br />
<a href="https://forums.mydigitallife.net/threads/50234/" target="_blank">Hotbird64</a> - the resourceful vlmcsd tool, and KMSEmulator source development.<br />
<a href="https://forums.mydigitallife.net/threads/50949/" target="_blank">cynecx</a> - SECO Injector bypass, SppExtComObj KMS functions.<br />
<a href="https://forums.mydigitallife.net/posts/856978" target="_blank">deagles</a> - SppExtComObjHook Injector.<br />
<a href="https://forums.mydigitallife.net/posts/839363" target="_blank">deagles</a> - KMSServerService.<br />
<a href="https://forums.mydigitallife.net/posts/1475544/" target="_blank">ColdZero</a> - CZ VM System.<br />
<a href="https://forums.mydigitallife.net/posts/1476097/" target="_blank">ColdZero</a> - KMS ePID Generator.<br />
<a href="https://forums.mydigitallife.net/posts/838023" target="_blank">kelorgo</a>, <a href="http://forums.mydigitallife.net/posts/838114" target="_blank">bedrock</a> - TAP adapter TunMirror bypass.<br />
<a href="https://forums.mydigitallife.net/posts/1259604/" target="_blank">mishamosherg</a> - WinDivert FakeClient bypass.<br />
<a href="https://forums.mydigitallife.net/posts/860489" target="_blank">Duser</a> - KMS Emulator fork.<br />
<a href="https://forums.mydigitallife.net/threads/67038/" target="_blank">Boops</a> - Tool Ghost KMS (TGK).<br />
ZWT, nosferati87, crony12, FreeStyler, Phazor - KMS Emulator development.</p>
</div>
</main>
<nav id="nav">
<div class="innertube">
<a href="#Overview">Overview</a><br />
<a href="#How">How does it work?</a><br />
<a href="#Supported">Supported Products</a><br />
<a href="#OfficeR2V">Office Retail to Volume</a><br />
<a href="#Using">How To Use</a><br /><br />
<a href="#Modes">Activation Modes</a><br />
<a href="#ModesAut">Auto Renewal</a><br />
<a href="#ModesMan">Manual</a><br />
<a href="#ModesExt">External</a><br /><br />
<a href="#Options">Additional Options</a><br />
<a href="#OptAct">Activation Choice</a><br />
<a href="#OptC2R">Office C2R-R2V</a><br />
<a href="#OptW10">KMS38 Win10</a><br />
<a href="#OptKMS">KMS Options</a><br />
<a href="#Switch">Unattended Switches</a><br /><br />
<a href="#Check">Check Activation Status</a><br />
<a href="#Setup">Setup Preactivate</a><br />
<a href="#Debug">Troubleshooting</a><br /><br />
<a href="#Source">Source Code</a><br />
<a href="#Credits">Credits</a><br />
</div>
</nav>
</body>
</html>