find_orphaned_entries
Identify and locate registry entries that reference files no longer present on the system to optimize Windows diagnostics and system stability.
Instructions
Find orphaned registry entries pointing to non-existent files
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/registry.ts:87-100 (handler)The main handler function that runs a PowerShell script to find orphaned registry entries and returns formatted markdown results.export async function findOrphanedEntries() { const result = await runPowerShellScript(REGISTRY_SCRIPT, { FindOrphaned: true, JsonOutput: true }) as AllTypes.RegistryDiagnosticResults; return { content: [ { type: 'text', text: `# Orphaned Registry Entries ${result.OrphanedEntries && result.OrphanedEntries.length > 0 ? result.OrphanedEntries.map(o => `- **Path**: ${o.Path} **Type**: ${o.Type}`).join('\n\n') : 'No orphaned entries found.'}`, }, ], }; }
- src/index.ts:153-160 (schema)Tool schema definition in the ListTools response, including name, description, and empty input schema (no parameters required).{ name: 'find_orphaned_entries', description: 'Find orphaned registry entries pointing to non-existent files', inputSchema: { type: 'object', properties: {}, } },
- src/index.ts:555-556 (registration)Dispatch/registration of the tool handler in the CallToolRequestSchema switch statement, calling registry.findOrphanedEntries().case 'find_orphaned_entries': return await registry.findOrphanedEntries();