PowerShell Troubleshooting
Common issues and direct fixes for IntelligenceX PowerShell usage.
Connect-IntelligenceX Fails With Executable Not Found
Symptom:
Connect-IntelligenceX -Transport AppServerthrows an error about Codex app-server not found.
Fix:
Connect-IntelligenceX -Transport AppServer -ExecutablePath "C:\tools\codex.exe"Fallback:
Connect-IntelligenceX -Transport NativeLogin Never Completes
Symptom:
Wait-IntelligenceXLogintimes out.
Fix checklist:
- Start login again and open the exact URL from
AuthUrl. - Wait using explicit login id.
- Verify account after completion.
$login = Start-IntelligenceXChatGptLogin
Write-Output $login.AuthUrl
Wait-IntelligenceXLogin -LoginId $login.LoginId -TimeoutSeconds 300
Get-IntelligenceXAccountRaw Output Needed But Typed Result Missing Field
Use -Raw to inspect full payload:
Get-IntelligenceXMcpServerStatus -Raw
Get-IntelligenceXConfig -Raw
Invoke-IntelligenceXRpc -Method "config/read"MCP OAuth Never Starts
Symptom:
- No server is found for OAuth workflow.
Fix:
- Filter using enum-safe auth status.
- Reload MCP config if files changed.
Invoke-IntelligenceXMcpServerConfigReload
$status = Get-IntelligenceXMcpServerStatus
$oauthStatus = [IntelligenceX.OpenAI.AppServer.Models.McpAuthStatus]::OAuth
$oauthServer = $status.Servers | Where-Object { $_.AuthStatus -eq $oauthStatus } | Select-Object -First 1
if ($oauthServer) {
Start-IntelligenceXMcpOAuthLogin -ServerName $oauthServer.Name
}Turn Is Stuck Or Running Too Long
Stop-IntelligenceXTurn -ThreadId $thread.Id -TurnId $turn.IdThen continue from the same thread:
Resume-IntelligenceXThread -ThreadId $thread.IdNeed To Rewind Conversation State
Restore-IntelligenceXThread -ThreadId $thread.Id -Turns 1Health Checks For Diagnostics
Get-IntelligenceXHealth
Get-IntelligenceXHealth -CopilotEnable detailed transport diagnostics:
Connect-IntelligenceX -Diagnostics
Watch-IntelligenceXEventScript Hygiene
Always disconnect in finally :
try {
$client = Connect-IntelligenceX
Initialize-IntelligenceX -Client $client -Name "Troubleshoot" -Title "Troubleshoot" -Version "1.0.0"
Get-IntelligenceXHealth -Client $client
} finally {
if ($client) {
Disconnect-IntelligenceX -Client $client
}
}