TSForge activation demonstration script

Discussion in 'Scripting' started by Dark Vador, Apr 19, 2025.

  1. mephistooo2

    mephistooo2 MDL Junior Member

    Feb 5, 2008
    81
    139
    0
    Dear @Dark Vador , I updated your script a bit, automated a lot of the work but there are still some missing parts. ☺️

    Is there a way to permanently activate Office products with the zerocid method using this script with a Retail or MAK product key?

    I just couldn't figure it out ☺️

    Features:
    1. LibTSforge.dll Integration: The script loads the LibTSforge.dll file, which is Base64 encoded, into memory. If the file is present, it will be loaded; otherwise, it will be decompressed from Base64 and loaded into memory.

    2. Random KMS IP Address Setting: For KMS or Volume licensed products, the script generates a random KMS IP address and sets it in the Windows registry. This helps prevent the "Genuine" license warning.

    3. Activation for Different License Types:
      • KMS (Key Management Service) licenses for activation.

      • VIRTUAL MACHINE ACTIVITY for AVMA (Automatic Virtual Machine Activation).

      • MAK, RETAIL, and OEM licenses for activation.
    4. Retail Office Products: The script detects retail (consumer) Office products, but it does not perform automatic activation for them.

    5. Product Selection and Activation: The script provides a user interface (Out-GridView) for selecting Windows and Office products for activation. Users can choose products and start the activation process.

    6. Product Information Retrieval: The script detects the license status of installed Windows and Office products on the system.

    7. Version Detection: The script uses the LibTSforge library to detect the current version of the product, and based on this, it performs the appropriate activation.

    8. Key Generation: The script generates random product keys and applies them to the corresponding products.
    Supported Versions:
    • Windows: Windows 10 and later versions (supports zerocid activation).

    • Office: Office 2013 and later versions, particularly for KMS licenses. Compatible with Office 2016 and later versions. (supports KMS activation).
    User Input:
    • -w: Selects only Windows products for activation.

    • -o: Selects only Office products for activation.
    When these parameters are used, the script activates only Windows or Office products. If both are selected, it activates both Windows and Office. If no parameters are provided, the user is prompted with a selection screen to choose the products to activate.

    Special Cases:
    • VIRTUAL_MACHINE_ACTIVATION license type: Works only on Windows Server Datacenter editions and requires Hyper-V or QEMU virtualization environments. While the script indicates success, real activation status may be verified through the slmgr.vbs -dlv command, which might show the actual activation state.

    [​IMG]
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,372
    6,382
    150
    Office products also offer mak license
    Install them, use ZeroCid
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mephistooo2

    mephistooo2 MDL Junior Member

    Feb 5, 2008
    81
    139
    0
    I couldn't figure out how to do this. :rolleyes:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,372
    6,382
    150
    #24 Dark Vador, May 14, 2025 at 15:01
    Last edited: May 14, 2025 at 15:07
    (OP)
    So now you want to install list of massive amount of mak license's, wmi command will be very very slowly :D
    In case of rtool, I remove all license, and reinstall vol & mak license
    And client* and pkeyconfig* license^s
    * But for a specific product
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,372
    6,382
    150
    Got an idea, do query of all office license * specific vol
    Search for mak same product
    Not found, search for mak license
    Install them, than re load license list
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mephistooo2

    mephistooo2 MDL Junior Member

    Feb 5, 2008
    81
    139
    0
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. witherornot

    witherornot MDL Junior Member

    Nov 18, 2020
    71
    423
    0
    How doesn't CSVLK work? What error is shown?