zhizhu
Home / developer-tools / Fix PowerShell 504 Gateway Timeout When Calling REST API - OneDrive Keeps Asking for Credentials: Fix Guide-How to Turn Off Windows Defender Real-Time Protection with Group Policy

Fix PowerShell 504 Gateway Timeout When Calling REST API - OneDrive Keeps Asking for Credentials: Fix Guide-How to Turn Off Windows Defender Real-Time Protection with Group Policy

Updated 2026-06-14 22:25:34developer-tools
Fix PowerShell 504 Gateway Timeout When Calling REST API - OneDrive Keeps Asking for Credentials: Fix Guide-How to Turn Off Windows Defender Real-Time Protection with Group Policy
Likely symptom
Likely cause
Safe rollback

Verification route

  • Repeat the original action, not only a simplified test case.
  • Restart the app or reload the service after configuration changes.