====================================================================================================
   KMS38 Protection:
====================================================================================================

 - If you don't know what is KMS38, then first check it in the respective KMS38 activation folder.

 - By default, KMS38 activation is vulnerable to be replaced by 180 days KMS activators.
   but with few tricks it can be made sure that no KMS activator can replace it by accident or even
   on purpose. so these scripts are about how to do/undo that.

 - Protect KMS38:
   - How it works?
     In KMS activation method, Windows OS first check the KMS IP registered as a specific KMS, and 
     if that is not defined then it checks the Global KMS IP.
     Another fact is that if LocalHost (127.0.0.2) is defined as KMS IP in windows 8.1 and 10 OS's
     then Windows will not accept it as a valid KMS IP.
     This script just utilizes above facts to protect KMS38 activation from being overrun by normal
     180 days KMS activation.

     Script steps-
     - Check if Windows is activated with KMS38, if yes,
     - Set that Windows edition specific KMS IP to LocalHost (127.0.0.2),
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f\XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
where X is Windows edition ID.

     - Lock this Registry with Reg_takeownership snippet by @AveYo aka @BAU
       pastebin.com/XTPt0JSC
     - Done.

 - Unprotect KMS38:
   - Just undo above steps,
     - Give administrator full control of that mentioned registry key.
     - Delete that registry key.
     - Done.

====================================================================================================
   Credits:
====================================================================================================

   @abbodi1406       Providing great help with the codes.

   @AveYo aka @BAU   Reg_takeownership snippet
                     pastebin.com/XTPt0JSC

   @WindowsAddict    Microsoft Activation Scripts
                     https://www.nsaneforums.com/topic/316668--/

====================================================================================================
   Discussion / Error Report / Support / Feedback / etc:
====================================================================================================

 - Go to the homepage,
   Microsoft Activation Scripts https://www.nsaneforums.com/topic/316668--/
   
   Alternatively, email me
   windowsaddict@protonmail.com

====================================================================================================