mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2026-04-27 15:05:54 +03:00
[GH-ISSUE #1046] TSforge ranged twice to active #716
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Microsoft-Activation-Scripts#716
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ChengYuQing2013 on GitHub (Aug 10, 2025).
Original GitHub issue: https://github.com/massgravel/Microsoft-Activation-Scripts/issues/1046
In the latest (ver3.4) TSforge_Activation.cmd, there is a problem it actives in the first time successfully, but it ranged twice to try.

I would like to make it not automatically actives by SCID, so I changed the bat code in Separate Files Version.
Here:
foreach ($params in $attempts) {
[LibTSforge.Modifiers.SetIIDParams]::SetParams($ver, $prod, $tsactid, [LibTSforge.SPP.PKeyAlgorithm]::PKEY2009, $params[0], $params[1], $params[2])
$instId = [LibTSforge.SPP.SLApi]::GetInstallationID($tsactid)
$confId = [ActivationWs.ActivationHelper]::CallWebService(1, $instId, "31337-42069-123-456789-04-1337-2600.0000-2542001")
# $result = [LibTSforge.SPP.SLApi]::DepositConfirmationID($tsactid, $instId, $confId)
# I deleted the deposit module to make it not automatically active and print IID with CID.
echo IID:$instId CID:$confId
}
I found that the command prompt printed 4 lines (or 2 pairs of active informations). In this information, both of them are correct IIDs (it means this IID can active Windows), but why it ranged twice?
@ChengYuQing2013 commented on GitHub (Aug 10, 2025):
Thank you, I see. If I delete the "break" code, then it will always range twice, else if just "break", not if-break, it will always range once?