Repository navigation
Releases
Releases · rhsCZ/termsrvpatcher
Update 1.5
Release Notes
This release improves restore resilience and interactive patch selection, with a focus on safer recovery from broken or incomplete local states.
Added
- Added support for restoring from
termsrv-bak.dlleven when the targettermsrv.dllfile is missing - Added confirmation prompts during restore when target and backup file sizes differ
- Added a cancel option when the same patch pattern is found at multiple offsets
Changed
- Improved restore behavior so target version checks are skipped when the target file is invalid or its property store cannot be read
- Improved restore workflow to continue from backup when the existing
termsrv.dllis unreadable but the backup file is valid - Improved multi-match patch selection to use the same interactive menu style as pattern selection
Fixed
- Fixed restore failure when the target
termsrv.dlldoes not exist - Fixed restore failure when the target file exists but its version information cannot be read
- Fixed patch selection behavior so users can exit cleanly when multiple matches exist for the same pattern
Updated
- Restore validation is now more tolerant of damaged or incomplete target files
- Interactive patch selection is now more consistent across pattern and offset selection flows
Notes
- System patching and restore still require Administrator rights
- Existing backup behavior continues to use
termsrv-bak.dll - Windows updates may still replace
termsrv.dll, so future pattern updates may still be required
Update 1.4
Release Notes
This release improves restore flexibility and patch selection behavior, with a focus on safer manual decisions during patching and restoration.
Added
- Added restore support for cases where the target
termsrv.dllfile is missing and only the backup file is available - Added confirmation prompts during restore when file size or file version does not match, allowing the user to continue manually
- Added a cancel option when multiple match locations are found for the same patch pattern
Changed
- Improved restore workflow so version and size comparisons are only performed when the target file actually exists
- Improved patch selection flow when the same pattern is found at multiple offsets
- Multiple match selection now uses the same interactive menu style as pattern selection
Fixed
- Fixed restore behavior so recovery can still proceed when the original target file is missing
- Fixed multi-match patch handling so the user can exit without patching instead of being forced to choose a match
- Improved consistency of interactive decision points during patch and restore operations
Updated
- Restore logic is now more tolerant of incomplete local states while still keeping validation and confirmation steps
- Patch workflow now behaves more safely in edge cases involving repeated pattern matches
Notes
- System patching and restore still require Administrator rights
- Existing backup behavior continues to use
termsrv-bak.dll - Windows updates may still replace
termsrv.dll, so future pattern updates may still be required
Update 1.3
Release Notes
This release focuses on reliability and safer system patch / restore behavior, especially for live system patching on newer Windows builds.
Fixed
- Fixed a system patching bug where
termsrv.dllcould be replaced with a zero-byte file in live patch mode - Fixed restore logic to consistently use
termsrv-bak.dllinstead oftermsrv.dll.bak - Fixed several silent failure paths during patch and restore operations
Added
- Added explicit validation to prevent replacing system files with suspiciously small outputs
- Added broader error checking for file operations, temporary file handling, and version checks
- Added stronger validation around patch output creation before any system file replacement occurs
Changed
- Replaced shell-based service control (
sc) with native Windows Service Control Manager APIs - Replaced shell-based ownership and ACL changes (
takeown,icacls) with native Windows security APIs - Improved stop/start service handling to use service state polling instead of fixed command chaining
- Improved restore and patch safety checks before modifying
C:\Windows\System32\termsrv.dll
Updated
- Internal patch / restore workflow is now more defensive and fails earlier on invalid intermediate states
- System file replacement flow now verifies backup and patched file integrity more aggressively
Notes
- System patching and restore still require Administrator rights
- Existing backup behavior continues to use
termsrv-bak.dll - Windows updates may still replace
termsrv.dll, so future pattern updates may still be required
Update 1.2
Release Notes
This release expands termsrvpatcher into a more complete single-binary workflow for patching, restore, testing, and offline verification.
Added
--help/-hto display available command line options--debug/-dfor verbose diagnostic output--dry-run/-drto detect matching patch patterns without modifying files or services--file/-f <path>to patch a customtermsrv.dllfile without touching system services--restore/-rto run restore mode directly from the main executable--bak-file/-bf <path>for custom file-based restore with--restore --file- Interactive arrow-key menu for
Patch/Restorewhen launched without action arguments - Additional non-debug progress output during patch and restore operations
- Administrator rights check before system patch / restore operations
Updated
- Patch patterns were refreshed to support newer versions
- Added support for the newer Windows 11 24H2
26100.8521+pattern branch - Improved offline testing workflow for patching and restoring local DLL copies
- Improved user feedback when scanning for matching patterns
Changed
- Restore functionality is now handled by
termsrvpatcher.exe --dry-runperforms detection only and never changes files or services--filemode never touches services- Restore with custom files now requires both
--fileand--bak-file - When multiple patterns match, the user can now choose the pattern interactively or cancel without making changes
Removed
- Removed the separate
restoreproject from the solution - Consolidated patch and restore workflows into the main project
Notes
- System patching still requires Administrator rights
- Windows updates may replace
termsrv.dll, so future pattern updates may still be needed
Update to 1.1 - change support maybe for all windows
Added support for many more versions of Windows.