DefenderReporter

Docs

Agent Install Troubleshooting for Defender Reporter

Step-by-step troubleshooting for Defender Reporter agent installation, including ExecutionPolicy, administrator permissions, scheduled task checks, and first check-in validation.

Category: Troubleshooting | Published 2026-03-05 | Updated 2026-11-20

Troubleshooting for Admins onboarding or repairing DefenderReporter agents

Use this guide when an endpoint install fails, completes without reporting, or behaves inconsistently after onboarding. It focuses on the shortest path from symptom to working agent.

Use a Known-Good Install Command

Goal: Start from a known-good baseline so you can isolate real failures quickly. If you are still building the broader reporting workflow around the agent, start with the reporting basics pillar.

Downloaded installer command (recommended): the downloaded script already includes tenant key and base URL defaults.

PS> powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\Downloads\Install-DefenderReporter.ps1"

Repo/source script command (explicit values required):

PS> powershell -NoProfile -ExecutionPolicy Bypass `
>>   -File .\agent\Install-DefenderReporter.ps1 `
>>   -TenantKey "<tenant-key>" `
>>   -BaseUrl "https://defenderreporter.com" `
>>   -IntervalMinutes 5

Run the installed agent immediately (manual test run):

PS> powershell -ExecutionPolicy Bypass -File "C:\ProgramData\DefenderReporter\agent.ps1"

Expected: Installer shows numbered progress steps and ends with a summary block.

Fix ExecutionPolicy and Script Launch Issues

Symptom: "Running scripts is disabled" or PowerShell window flashes and closes.

Cause: Current execution policy or browser zone marker blocks script execution.

Fix:

  1. Check all policy scopes.
  2. Set process-scope bypass for this session only.
  3. Rerun installer.
PS> Get-ExecutionPolicy -List
PS> Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
PS> powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\Downloads\Install-DefenderReporter.ps1"

Alternative (repo/source installs): Use wrapper if direct .ps1 launch is unreliable.

PS> .\agent\Install-DefenderReporter.cmd -TenantKey "<tenant-key>" -BaseUrl "https://defenderreporter.com" -IntervalMinutes 5

Fix Admin/UAC and Permission Problems

Symptom: "Installer must be run from an elevated PowerShell session."

Cause: Command is running without admin privileges, so task registration and ACL writes fail.

Verify elevation:

PS> ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
PS> # Expected output: True

Fix: Open PowerShell as Administrator, rerun the installer command, and accept UAC prompt.

Confirm Task Creation and First Check-In

Goal: Confirm install succeeded operationally, not just syntactically.

Run:

PS> Get-ScheduledTask -TaskName "DefenderReporter"
PS> Get-ScheduledTaskInfo -TaskName "DefenderReporter"
PS> powershell -ExecutionPolicy Bypass -File "C:\ProgramData\DefenderReporter\agent.ps1"
PS> Get-Content "C:\ProgramData\DefenderReporter\install.log" -Tail 80
PS> Get-Content "C:\ProgramData\DefenderReporter\logs\agent.log" -Tail 80

Expected:

  • Task exists and has valid NextRunTime.
  • Agent log shows agent.run_started and agent.run_finished.
  • Ingest events show success or actionable failure metadata.

Pause or Remove the Agent

The default installation creates the DefenderReporter scheduled task and stores scripts, configuration, and local logs under C:\ProgramData\DefenderReporter. The configuration and downloaded installer contain your tenant ingest key; keep them private.

To pause collection on an endpoint, open PowerShell as Administrator and run:

Stop-ScheduledTask -TaskName 'DefenderReporter'
Disable-ScheduledTask -TaskName 'DefenderReporter'

To remove the scheduled task after stopping it:

Unregister-ScheduledTask -TaskName 'DefenderReporter' -Confirm:$false

Confirm the task is removed and no agent or updater process is running. Save any local logs you need, then remove the installation folder through File Explorer. These are the default task name and folder; verify the actual installation before removing anything. Removing the local agent does not delete historical data already stored on the server. Contact support for questions about previously reported data.

The agent checks a release manifest and can update its managed scripts. Stopping reporting is an endpoint administration action, separate from closing an alert in the web app.

Install Succeeds but No Data Appears

Symptom: Installer summary looks successful but dashboard has no device data.

Common causes: Wrong tenant key, wrong base URL, blocked network path, invalid TLS/proxy behavior.

Checks:

PS> Get-Content "C:\ProgramData\DefenderReporter\config.json"
PS> Invoke-WebRequest "https://defenderreporter.com/agent/agent.ps1" `
>>   -UseBasicParsing
PS> Get-Content "C:\ProgramData\DefenderReporter\logs\agent.log" -Tail 120

Interpretation:

  • ingest.send_success: endpoint can submit data.
  • ingest.send_failed: network/auth/server issue to remediate.
  • ingest.skipped_invalid_base_url: config URL is invalid for current policy.

If onboarding is working but daily operations are not, continue with the small-team reporting workflow or the reporting mistakes checklist.

Your next step

Confirm that your endpoint is reporting

After rerunning the installer or scheduled task, sign in and open Devices. Find the endpoint, check its latest activity and agent version, and confirm its reported protection fields. If it still does not appear, contact support with the symptom and relevant log details, omitting tenant keys.

Get help connecting my first PC

Tell us where setup stopped and how we can reach you. Leave out passwords, tenant keys, and the configured installer.

Related Docs

Weekly Microsoft Defender Review for Small IT Teams

A small-team operating model for Microsoft Defender reporting, including review cadence, ownership, stakeholder updates, and how to keep the workflow lightweight.

Triage and Operations | Updated 2026-11-20

Common Defender Dashboard Mistakes

A practical guide to the reporting mistakes that make Microsoft Defender queues harder to trust, harder to act on, and more expensive for small teams.

Troubleshooting | Updated 2026-11-20

Browse all docs or see product features.