# Microsoft Error Diagnosis: Windows, M365, Entra & Intune Fixes (`best_actors/microsoft-error-diagnosis`) Actor

Decode any Windows, Microsoft 365, Entra ID, Intune or Azure error (10,000+ codes) and get the likely cause, Microsoft's fix steps with links, an outage and known-issue check, and read-only tenant checks for failed sign-ins, licences and devices. Bulk-friendly.

- **URL**: https://apify.com/best_actors/microsoft-error-diagnosis.md
- **Developed by:** [Lewis O'Rorke](https://apify.com/best_actors) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 problem diagnoseds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Microsoft Error Diagnosis: Windows, M365, Entra & Intune Fixes

**Paste any Windows, Microsoft 365, Entra ID (Azure AD), Intune or Azure
error and get back what it means, why it happened and how Microsoft says to
fix it, with a link for every step. 10,000+ error codes, 6,000+ Microsoft
support articles, live Microsoft Learn, outage and known-issue checks, and
optional read-only checks inside your own tenant: why a user can't sign in,
which Conditional Access policy blocked them, and licence, device and MFA
problems. Built for bulk: diagnose hundreds of tickets or log lines in one run.**

***

### At a glance

| | |
|---|---|
| **Input** | Error messages or log lines, error codes, searches, Windows versions/KBs, and (optional) users in your tenant |
| **Output** | One row per item: decoded codes, likely cause, fix steps with Microsoft links, commands labelled read-only or changes-the-system, outage and known-issue status, tenant findings |
| **Covers** | Windows 10/11 and Server, Microsoft Entra ID, Intune/Autopilot, Azure, Microsoft 365 apps, Outlook, Exchange Online, Teams, SQL Server |
| **Pricing** | Pay per result, from $0.015. Nothing charged for items that find nothing |
| **Speed** | About 1 to 2 seconds per problem with Microsoft Learn on; faster with it off |
| **Also as** | MCP server and pay-per-call API: [microsoft.l50automation.com](https://microsoft.l50automation.com) |

***

### Who it is for

- **IT helpdesks and MSPs** triaging tickets: paste the error, get Microsoft's fix and the next question to ask
- **Sysadmins** decoding update failures, blue screens, event log errors and sign-in failures
- **Microsoft 365 admins** finding why a user is blocked, without clicking through five admin centres
- **AI agents and copilots** that need reliable Microsoft answers instead of guesses
- **Tool builders** enriching ticket data with decoded codes and fix links

***

### Why not just the free Microsoft Learn MCP?

Microsoft's free [Learn MCP server](https://learn.microsoft.com/training/support/mcp)
is great at searching Microsoft's documentation, and this Actor calls it for
you. What it adds on top:

| | Free Learn MCP | This Actor |
|---|---|---|
| **Input** | A search query | Raw error text, logs or descriptions, in bulk |
| **Error codes** | Searched as text | Decoded from 10,000+ official codes (HRESULTs unwrapped, stop codes, AADSTS, CBS, Windows Update) |
| **Fix steps** | Text excerpts | Ranked steps from Microsoft's troubleshooting articles, each with a link and a confidence level |
| **Commands** | Inside the text | Labelled *read-only* or *changes the system* |
| **Outages and known issues** | No | Microsoft 365, Azure and Windows release health checked live |
| **Your tenant** | No | Failed sign-ins and the Conditional Access policy that blocked them, licences, Intune devices, MFA |
| **Output** | Pages for a person or AI to read | One structured row per item, ready for spreadsheets, ticket systems and agents |

Use the Learn MCP for general how-to questions and code samples. Use this
when something is broken and you need the fix.

***

### What you can put in

| Input | You get one row per item with |
|---|---|
| **Problems to diagnose** (e.g. `Windows Update failed with error 0x800f0922 on Windows 11 24H2`) | Every code decoded, likely cause, confidence, fix steps with citations, labelled commands, matching articles, live Microsoft Learn docs, outage status, Windows known issues for the version/KB, next questions, and which tenant check to run |
| **Error codes** (e.g. `0x80070005`, `AADSTS53003`, `stop code 0x7E`, `Event ID 41`) | Every family the code belongs to, the official meaning, an HRESULT breakdown (facility, severity, wrapped Win32/NTSTATUS) and the Microsoft reference link |
| **Searches** (e.g. `computer cannot join domain`) | Matching Microsoft support articles (summary, cause, steps, commands, link) and live Learn docs |
| **Windows versions or KBs** (e.g. `11 24H2`, `KB5124008`) | Microsoft release health known issues: title, status, originating build and KB, date, link |
| **Outage check** (tick box) | Live Microsoft 365 and Azure public incidents |
| **Tenant: sign-in users** | Each user's failed sign-ins decoded, the Conditional Access policy that blocked them and what it required, app, device, location, correlation ID |
| **Tenant: users to check** | Blocked account, missing licence or disabled plan (Exchange, Teams, SharePoint, Intune), Intune compliance and last check-in, MFA methods |
| **Tenant: service health** (tick box) | Degraded services and open incidents in your tenant |

#### Error codes it understands

Win32 system errors (2,700+), HRESULT/COM (2,300+), NTSTATUS (2,800+), blue
screen bug checks (370+), Entra AADSTS sign-in errors (350+), Windows Update,
BITS, WinInet and Windows Installer codes, about 1,000 more (CBS servicing,
Intune, Office activation, Autopilot) taken from Microsoft's support
articles, and common Event Viewer IDs. Codes are found anywhere in text: `0x`
hex, bare hex like `80070005`, negative numbers like `-2147024891`,
`AADSTS` numbers, `Event ID` numbers and names like `ERROR_ACCESS_DENIED`.

***

### Sample output

A diagnosis (shortened; values are an example):

```json
{
  "type": "diagnosis",
  "input": "Windows Update failed with error 0x800f0922 on Windows 11 24H2",
  "windows_version": "Windows 11 24H2",
  "codes": [{ "code": "0x800f0922", "name": "CBS_E_INSTALLERS_FAILED", "meaning": "Advanced installer failure",
              "reference": "https://learn.microsoft.com/troubleshoot/azure/virtual-machines/windows/troubleshoot-windows-update-azure-vm" }],
  "confidence": "high",
  "likely_cause": { "cause": "Advanced installer failure", "source": "https://learn.microsoft.com/troubleshoot/..." },
  "fix_steps": [
    { "step": "Find the staged update packages by running the get-packages cmdlet:",
      "source": "https://learn.microsoft.com/troubleshoot/windows-server/installing-updates-features-roles/error-0x800f0922-installing-windows-updates" }
  ],
  "commands": [
    { "command": "Dism /english /online /get-packages /format:table", "safety": "read-only" },
    { "command": "Dism /online /remove-package /PackageName:Package_for_RollupFix...", "safety": "changes the system" }
  ],
  "microsoft_outage": { "active_incidents": [], "verdict": "No wide Microsoft 365 or Azure outage is being reported publicly. ..." },
  "windows_known_issues": { "open_for_version": [ { "title": "...", "status": "Confirmed", "kb": "KB5127648" } ] },
  "next_questions": [],
  "suggested_tools": []
}
```

A tenant sign-in check (made-up example):

```json
{
  "type": "tenant_signins",
  "user": "jo@contoso.com",
  "findings": [{
    "finding": "2 failed sign-in(s) with AADSTS53003",
    "meaning": "Access has been blocked by Conditional Access policies. ...",
    "apps": ["Microsoft Outlook"],
    "blocked_by_conditional_access": ["Require compliant device"],
    "fix": "Review the named Conditional Access policy: what it requires (MFA, compliant device, location) and whether this user/device meets it."
  }]
}
```

***

### One-click examples

- [Diagnose a Windows Update failure](https://apify.com/best_actors/microsoft-error-diagnosis/windows-update-error)
- [Decode a batch of error codes](https://apify.com/best_actors/microsoft-error-diagnosis/decode-codes)
- [Blue screen (stop code) triage](https://apify.com/best_actors/microsoft-error-diagnosis/blue-screen)
- [Entra ID sign-in errors (AADSTS)](https://apify.com/best_actors/microsoft-error-diagnosis/entra-sign-in-errors)
- [Windows known issues for 11 24H2 and a KB](https://apify.com/best_actors/microsoft-error-diagnosis/windows-known-issues)

***

### Pricing

Pay per result. You are never charged for empty input, items that find
nothing, or tenant checks Microsoft refuses.

| Event | Price |
|---|---|
| Problem diagnosed | $0.02 |
| Code decoded | $0.015 |
| Search with results | $0.015 |
| Windows known issues (per version or KB) | $0.015 |
| Outage check (per run) | $0.015 |
| Tenant service health (per run) | $0.02 |
| Tenant sign-in check (per user) | $0.05 |
| Tenant user check (per user) | $0.05 |

**Worked example:** 50 helpdesk tickets diagnosed, 20 codes decoded and one
outage check: 50 x $0.02 + 20 x $0.015 + $0.015 = **$1.315**, plus Apify
platform usage (small: no browser is used).

***

### Tenant checks: setup (about 5 minutes)

Tenant checks read **your** Microsoft 365 data with a **read-only** token from
**your own** app registration. Skip this if you only need diagnosis.

1. [Microsoft Entra admin center](https://entra.microsoft.com) > Applications > App registrations > **New registration** (single tenant, no redirect URI).
2. **API permissions** > Microsoft Graph > **Application permissions**. Add only what you need, then **Grant admin consent**:
   - Sign-in checks: `AuditLog.Read.All` (sign-in logs need Entra ID P1/P2, included in Microsoft 365 Business Premium, E3 and E5)
   - Service health: `ServiceHealth.Read.All`
   - User checks: `User.Read.All`, plus optional `DeviceManagementManagedDevices.Read.All` (Intune) and `UserAuthenticationMethod.Read.All` (MFA)
3. **Certificates & secrets** > New client secret.
4. Get a token (valid about an hour):

```powershell
$body = @{ client_id='<client-id>'; client_secret='<secret>'; scope='https://graph.microsoft.com/.default'; grant_type='client_credentials' }
(Invoke-RestMethod -Method Post -Body $body -Uri 'https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token').access_token
```

5. Paste it into **Graph access token**. The field is secret (encrypted by
   Apify), used only during the run and never written to results.

If the token is expired, for the wrong API, or missing a permission, the run
stops at once with a clear message naming what to fix, and nothing is charged.

***

### Privacy and safety

- **Read-only.** Only Microsoft Graph read calls. Nothing in your tenant is changed and no command is ever run.
- **Your token stays yours.** Secret input, used for this run only, never stored in the dataset or logs.
- **Commands are labelled.** Every command from Microsoft's articles is marked `read-only`, `changes the system` or `unknown: check before running`, so you or your agent can decide what is safe.
- Avoid pasting passwords or secrets into problems.

***

### Tips

- Include the **exact error code** when you have it: matches are much sharper.
- Mention the **Windows version** (`Windows 11 24H2`) and **KB number** for update problems: known issues are checked automatically.
- For blue screens, add the 4 bug check parameters if you have them.
- Turn off **Also search Microsoft Learn live** for very large batches when you only need codes and articles.
- Outlook, Teams and Exchange troubleshooting comes mostly from live Microsoft Learn, so keep that option on for those.

***

### FAQ

**Does it fix things for me?** No. It diagnoses and gives Microsoft's own
steps with links. It never changes your tenant or machines.

**Isn't the Microsoft Learn MCP free?** Yes, and this Actor uses it. It
searches docs; this decodes the exact error, ranks Microsoft's fix steps,
checks outages and known issues, and reads your tenant (see the comparison
above).

**Why not just ask ChatGPT?** Models guess what codes mean and invent fixes.
This returns the official meaning of the exact code, Microsoft's own fix
steps with links, today's outage and known-issue status, and the real
sign-in evidence from your tenant.

**How fresh is it?** Microsoft Learn, outages, known issues and tenant data are
live. The support-article index is rebuilt each time the Actor is built.

**Can I call it from my AI agent?** Yes: the same engine is an MCP server at
`https://microsoft.l50automation.com/mcp` (pay per call with x402). Full guide:
[microsoft.l50automation.com/docs](https://microsoft.l50automation.com/docs).

***

### Sources and attribution

Microsoft support articles from
[MicrosoftDocs/SupportArticles-docs](https://github.com/MicrosoftDocs/SupportArticles-docs),
error code references from MicrosoftDocs win32, windows-driver-docs and
entra-docs, and NTSTATUS names from microsoft/windows-rs, all © Microsoft,
used under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) or MIT
(reformatted and shortened; every result links to the original). Live
results from Microsoft Learn, Windows release health and the Microsoft 365
and Azure status feeds are linked, not stored. This Actor is independent and
not affiliated with or endorsed by Microsoft.

# Actor input Schema

## `problems` (type: `array`):

Error messages, log lines or descriptions, one per line (up to 4,000 characters each). Each gets decoded codes, likely cause, Microsoft fix steps with links, commands labelled read-only or changes-the-system, outage and known-issue checks.

## `codes` (type: `array`):

e.g. 0x80070005, -2147024891, C0000005, AADSTS50076, stop code 0x7E, ERROR_ACCESS_DENIED, Event ID 41, 1603.

## `searches` (type: `array`):

Free-text searches across 6,000+ Microsoft support articles plus live Microsoft Learn.

## `windowsVersions` (type: `array`):

Windows versions (11 24H2, 10 22H2, Server 2022) or KB numbers (KB5124008). Returns Microsoft release health known issues.

## `outageCheck` (type: `boolean`):

Adds one row with live Microsoft 365 and Azure public incidents.

## `useMicrosoftLearn` (type: `boolean`):

Adds live Microsoft Learn results (covers Outlook, Teams and Exchange). Turn off for faster bulk runs.

## `graphToken` (type: `string`):

A read-only Microsoft Graph access token from your own app registration (see README). Used only during this run and never stored in results.

## `signinUsers` (type: `array`):

Sign-in names (user@domain). Returns failed sign-ins decoded and the Conditional Access policy that blocked them. Needs AuditLog.Read.All and Entra ID P1/P2.

## `signinDays` (type: `integer`):

How far back to read sign-ins.

## `checkUsers` (type: `array`):

Sign-in names. Finds blocked accounts, missing or disabled licences, non-compliant Intune devices and missing MFA. Needs User.Read.All.

## `tenantHealth` (type: `boolean`):

Adds one row with degraded services and open incidents in your tenant. Needs ServiceHealth.Read.All.

## Actor input object example

```json
{
  "problems": [
    "Windows Update failed with error 0x800f0922 on Windows 11 24H2"
  ],
  "codes": [
    "0x80070005",
    "AADSTS53003"
  ],
  "outageCheck": false,
  "useMicrosoftLearn": true,
  "signinDays": 3,
  "tenantHealth": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `codes` (type: `string`):

No description

## `tenant` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "problems": [
        "Windows Update failed with error 0x800f0922 on Windows 11 24H2"
    ],
    "codes": [
        "0x80070005",
        "AADSTS53003"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("best_actors/microsoft-error-diagnosis").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "problems": ["Windows Update failed with error 0x800f0922 on Windows 11 24H2"],
    "codes": [
        "0x80070005",
        "AADSTS53003",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("best_actors/microsoft-error-diagnosis").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "problems": [
    "Windows Update failed with error 0x800f0922 on Windows 11 24H2"
  ],
  "codes": [
    "0x80070005",
    "AADSTS53003"
  ]
}' |
apify call best_actors/microsoft-error-diagnosis --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,best_actors/microsoft-error-diagnosis"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/tu5XGWcOxCb2wFHar/builds/HiR9o3VA8mUet8QNY/openapi.json
