Add recursive link crawling and query execution through link chains#2108
Open
mverschu wants to merge 2 commits intofortra:masterfrom
Open
Add recursive link crawling and query execution through link chains#2108mverschu wants to merge 2 commits intofortra:masterfrom
mverschu wants to merge 2 commits intofortra:masterfrom
Conversation
mverschu
commented
Jan 30, 2026
- Add crawl_links command to recursively discover all linked servers
- Add query_link command to execute queries through link paths or server instances
- Add xp_cmdshell_link command to execute commands through link paths or server instances
- Support automatic path discovery and execution on all discovered paths
- Support targeting specific servers by instance name
- Use OPENQUERY instead of EXEC AT for better compatibility (no RPC required)
- Improve output formatting for xp_cmdshell results (filter NULLs, clean display)
- Match PowerUpSQL's Get-SQLServerLinkCrawl functionality
- Add crawl_links command to recursively discover all linked servers - Add query_link command to execute queries through link paths or server instances - Add xp_cmdshell_link command to execute commands through link paths or server instances - Support automatic path discovery and execution on all discovered paths - Support targeting specific servers by instance name - Use OPENQUERY instead of EXEC AT for better compatibility (no RPC required) - Improve output formatting for xp_cmdshell results (filter NULLs, clean display) - Match PowerUpSQL's Get-SQLServerLinkCrawl functionality
…lback - Add enable_xp_cmdshell_link command to enable xp_cmdshell through link paths - Add disable_xp_cmdshell_link command to disable xp_cmdshell through link paths - Support automatic OPENQUERY fallback when RPC is not enabled on linked servers - Fix error detection to properly check lastError and replies for RPC errors - Use EXEC AT for sp_configure commands, fallback to OPENQUERY when RPC unavailable - Support targeting specific servers by instance name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.