mirror of
https://github.com/amidaware/community-scripts.git
synced 2026-04-26 06:25:54 +03:00
[PR #309] [MERGED] Bump Agent troubleshooter, adding remote access scripts #309
Labels
No labels
enhancement
good first issue
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/community-scripts#309
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?
📋 Pull Request Information
Original PR: https://github.com/amidaware/community-scripts/pull/309
Author: @silversword411
Created: 2/14/2026
Status: ✅ Merged
Merged: 2/14/2026
Merged by: @silversword411
Base:
main← Head:main📝 Commits (2)
4c5d55eAgent Troubleshooting 1.7bfb7e05WIP: Add Remote Access detector and screenconnect detector 1.10📊 Changes
4 files changed (+1599 additions, -84 deletions)
View changed files
📝
scripts/Win_TRMM_Troubleshooting_Agent.ps1(+77 -0)➕
scripts_wip/Win_Remote_Access_Detect_Monitor_and_killer_v1.8.py(+1362 -0)➖
scripts_wip/Win_Screenconnect_Detectothers.ps1(+0 -84)➕
scripts_wip/Win_Screenconnect_Detectothers_v1.10.ps1(+160 -0)📄 Description
v1.7 update (dated 1/8/2026)
Added two new functions:
Get-DefenderExclusions - Retrieves Windows Defender exclusions (paths, processes, extensions)
Get-ProgramFilesList - Lists contents of Program Files directories with timestamps
These functions are called at the end of the troubleshooting script to include defender exclusions and installed programs in the output
Brand new comprehensive Python script (1362 lines) for detecting remote access tools
Detects 20+ remote access and RMM tools (TeamViewer, AnyDesk, ScreenConnect, NinjaOne, etc.)
Features:
Process, service, and file signature detection
Network connection mapping
Kill and cleanup capabilities (--kill, --clean flags)
Flexible exclusion system via environment variables
Server URL extraction from config files
Supports both remote access tools and RMM platforms
Version history through v1.8 with multiple enhancements including JWrapper/SimpleHelp detection and GoToAssist improvements
Original ScreenConnect detection script removed
Replacement for deleted file with significant improvements
v1.10 changes:
Fixed WMI compatibility issue (replaced Get-WmiObject with Get-CimInstance)
Added registry fallback for service path lookup
New Get-ServiceDetail function with fault tolerance
Added Remove-InvalidSCService function to delete unauthorized ScreenConnect services
New -deleteInvalid switch parameter
Enhanced debug output showing service names
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.