TSForge activation demonstration script

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

  1. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,317
    6,273
    150
    #1 Dark Dinosaur, Apr 19, 2025
    Last edited: Apr 23, 2025
    TSForge Activation Script — Office & Windows Activator Demo (No External DLL Needed)

    A demo PowerShell script that uses LibTSForge.dll to detect and activate installed Office and Windows products.
    The script includes everything in one file — no need to keep the DLL next to the script.
    For activation solution, use Microsoft Activation Scripts (MAS) official Tool
    Code:
    From Powershell, ISE window, Type:
    irm https://get.activated.win | iex
    Or
    irm https://massgrave.dev/get | iex
    
    ✅ Features:
    • Detects installed Office & Windows license SKUs
    • Dynamically loads the embedded LibTSForge.dll into memory (Base64 + compressed)
    • Uses KMS4K or ZeroCID methods depending on license type (KMS / MAK / Retail / OEM)
    • Clean product selection UI via Out-GridView
    • Installs a random valid key (from embedded config) before activation
    • Admin rights + PowerShell 3.0+ required

    ✅ what it's not:

    • Advanced activation script, nope
    • Replacement for MAS project, nope
    • Replacement for your original favorite activation tool, nope

    upload_2025-4-21_20-47-8.png

    upload_2025-4-19_10-4-50.png
     

    Attached Files:

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

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,317
    6,273
    150
    #2 Dark Dinosaur, Apr 19, 2025
    Last edited: Apr 23, 2025
    (OP)
    Reserved
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,512
    2,743
    120
    #3 pm67310, Apr 19, 2025
    Last edited: Apr 19, 2025

    @Dark Dinosaur
    -

    You need to exclude demo/msdn/pin
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,317
    6,273
    150
    fixed, update code in main post
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,512
    2,743
    120
    add

    $license = $iwmi | Where-Object Description -NotMatch 'demo|MSDN|PIN|Free|TIMEBASED|Grace' | Sort-Object Name | Out-GridView -Title 'Select Products to activate' -OutputMode Multiple

    to remove timebased , grace , free aka bypass
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,317
    6,273
    150
    Also Fix This. -> Select ID,Description,Name
    And this, $pkc.LoadConfig([LibTSforge.SPP.SLApi]::GetAppId($guid)) | Out-Null
    main post is updated
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. witherornot

    witherornot MDL Junior Member

    Nov 18, 2020
    64
    389
    0
    LoadConfig only accepts activation id, not app id, I think what you want is LoadAllConfigs?
     
  8. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,317
    6,273
    150
    #8 Dark Dinosaur, Apr 20, 2025
    Last edited: Apr 20, 2025
    (OP)
    I guess you right :D (FIXED)
    also fix sort thing
    and other stuff

    upload_2025-4-20_5-55-28.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,317
    6,273
    150
    #9 Dark Dinosaur, Apr 20, 2025
    Last edited: Apr 20, 2025
    (OP)
    Upload new version (now)
    Code:
    Ignore w10 license (wtf is this ?)
    and also use 1 time -match with regex
    instead if ,, if ,, if ..
    also, remove extra space between each function
    
    so, new full ignore list is:
    (i think it cover all option, if you have suggestion .. i'm here)
    Code:
    DEMO|MSDN|PIN|FREE|TIMEBASED|GRACE|W10
    
    Clean Nice Script.

    upload_2025-4-20_20-56-47.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. alchemist_81

    alchemist_81 MDL Novice

    Jul 20, 2015
    25
    5
    0
    Is it possible to implement parameter support for the automatic activation of the operating system and the installed Office product?
     
  11. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,317
    6,273
    150
    just a demo script, add what you like.
    it's not going to be further more than a demo script
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...