Overview RDS Gen is a standalone, hybrid PowerShell/C# script with a graphical user interface (GUI) designed for the generation of Service Provider Keys (SPKs) (License Server IDs) and License Key Packs (LKPs). These keys are utilized in the offline activation process for Microsoft Remote Desktop Services (RDS) and associated Client Access Licenses (CALs). Unlike web-based implementations, this tool runs entirely locally on your Windows machine without requiring internet access. Technical Basis This project leverages the foundational cryptographic research conducted by WitherOrNot, who developed the original Proof-of-Concept CLI tool in Python (available in his GitHub gist). The C# cryptography port was originally created by Lyssa (thecatontheceiling). Disclaimer / Educational Purpose This project is strictly for educational and research purposes. Please adhere to Microsoft's current licensing agreements and terms of use (EULA) when using this tool. The developers assume no legal responsibility for any misuse of this tool. Extra: Completely Resetting RDS Licensing Note: All of these steps are now integrated directly into the application's GUI in the latest release. However, if you wish to perform them manually, you can run the following PowerShell commands as Administrator: Code: # 1. Stop the service Stop-Service TermServLicensing -Force -ErrorAction SilentlyContinue taskkill /F /FI "SERVICES eq TermServLicensing" 2>$null Start-Sleep -Seconds 2 # 2. Completely remove the role (this also cleans up service registration, COM components, and registry templates) Uninstall-WindowsFeature -Name RDS-Licensing -Restart # 3. Clean up remaining traces (if any) Remove-Item "C:\Windows\System32\lserver" -Recurse -Force -ErrorAction SilentlyContinue reg delete "HKLM\SOFTWARE\Microsoft\TermServLicensing" /f 2>$null reg delete "HKLM\SYSTEM\CurrentControlSet\Services\TermServLicensing" /f 2>$null # 4. Verify the role is completely removed Get-WindowsFeature -Name RDS-Licensing # 5. Restart the computer. # 6. Reinstall the role from scratch Install-WindowsFeature -Name RDS-Licensing -IncludeManagementTools -Restart # 7. Start the service Start-Service TermServLicensing Acknowledgements A special thanks to the following individuals for their amazing work and contributions: WitherOrNot - Foundational research and original code contributions. Lyssa (thecatontheceiling) - Original C# port and the base web implementation. asdcorp - Contributions to the foundation of the original project. Bensuslu11 - Awesome contributions to the user interface (GUI) updates. https://github.com/abdullah-erturk/RDS-Gen