TSForge activation demonstration script

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

  1. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    #1 Dark Vador, Apr 19, 2025
    Last edited: Yesterday at 16:41
    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 or AVMA4K methods depending on license type
    • Clean product selection UI via Out-GridView
    • Installs a random valid key (from embedded config) before activation
    • Admin rights + PowerShell 3.0+ required

    Latest Change's
    Code:
    v3.0.1 - 13/05/2025
    * update Server support by pm67310
    
    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 Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    #2 Dark Vador, 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,538
    2,775
    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 Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    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,538
    2,775
    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 Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    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
    69
    416
    0
    LoadConfig only accepts activation id, not app id, I think what you want is LoadAllConfigs?
     
  8. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    #8 Dark Vador, 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 Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    #9 Dark Vador, 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 Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    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...
  12. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,538
    2,775
    120
    You can edit one line to add avma4k support its easy :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    Do it I'm lazy
    I will update the post
    But it's for server 12 I think
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,538
    2,775
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,538
    2,775
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,538
    2,775
    120
    @Dark Vador https://www.mediafire.com/file/3j8ff61k6qo2el3/TSForge-LicenseTool.ps1/file

    change
    Code:
    # Check if the product is VIRTUAL_MACHINE_ACTIVATION
                if ($item.Description -match 'VIRTUAL_MACHINE_ACTIVATION') {
                    Write-Host "REQUIRES: Windows Server Datacenter as HOST + hyper-V or QEMU to work, by design output indicate success but slmgr.vbs -dlv indicate real state" -ForegroundColor Yellow
    Code:
                Write-Host "ID:          $tsactid" -ForegroundColor DarkGreen
                Write-Host "Name:        $($item.Name)" -ForegroundColor DarkGreen
                Write-Host "Description: $($item.Description)" -ForegroundColor White
    Code:
        $products = $iwmi | Where-Object { $_.Description -notmatch 'DEMO|MSDN|PIN|FREE|TIMEBASED|GRACE|W10|WS12|WS12R2|WS16|WS19|WS22|WS25' } | Select ID,Description,Name
    => exclude CSVLK aka KMS host because not working
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    will fix post now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. RobrPatty

    RobrPatty MDL Expert

    Jul 23, 2009
    1,334
    625
    60
    Nice...

    screenshot_1.png