Remediations and scripts

See how each Intune remediation and PowerShell script ran across your devices, and find the devices where it failed.

Remediations and Scripts are two lists under Policy & App Health in the sidebar. The first covers Intune remediations (script packages that detect a problem and then fix it). The second covers the Windows PowerShell scripts you run from Intune. Each list has one row per remediation or script, with a count of devices in each outcome, and each row opens the devices behind the counts.

Everyone who signs in can open both. An administrator can block or filter the data behind them for a role.

Remediations#

Remediations, with the ones erroring on the most devices at the top.
Remediations, with the ones erroring on the most devices at the top.

There is one row for each remediation in each Intune tenant. The list opens sorted by Error, highest first.

ColumnWhat it counts
CustomerThe customer the tenant belongs to. Only shown when you look after several customers and have not picked one.
Intune TenantThe tenant the remediation lives in.
Remediation NameThe remediation’s name in Intune.
Total DevicesDevices that have reported a run of this remediation.
Without IssueDevices where detection ran and found nothing wrong.
Issue FoundDevices where detection found the problem.
RemediatedDevices where the fix ran and the problem is gone.
ErrorDevices where detection failed, or where the fix failed or timed out.

The counts are plain numbers. Nothing on this screen is colour coded.

A device can be counted in more than one column. A device where the problem was found and then fixed is in both Issue Found and Remediated. A device where the problem was found and the fix failed is in both Issue Found and Error. That is why the columns do not add up to Total Devices.

The pattern to look for is a high Issue Found with a low Remediated: the remediation is finding the problem and not fixing it.

The devices behind a remediation#

Press a remediation to open its devices in a panel on the right.

One remediation’s devices, with what detection found and what the fix did on each.
One remediation’s devices, with what detection found and what the fix did on each.
ColumnWhat it means
Remediation NameThe remediation you opened.
DeviceThe device’s name.
UPNThe user Intune reported the run against.
Detection StatusWhat the detection script found.
Remediation StatusWhat the fix did.
Model (Reported)The device model Intune reported with the run. Useful when a remediation fails on one model only.
ModifiedWhen Intune last updated this run.
Detection StatusMeaning
PendingThe device has not run detection yet.
Without IssuesDetection ran and found nothing wrong.
With IssuesDetection found the problem.
FailedThe detection script itself failed.
Remediation StatusMeaning
Not runThe fix has not run on this device.
Issue fixedThe fix ran and the problem is gone.
RecurredThe problem was fixed and has come back.
FailedThe fix script failed.
Timed outThe fix script did not finish in time.
UnknownIntune did not report an outcome.

If Intune reports an outcome Eido has no name for yet, the number Intune sent is shown instead.

Press a column heading to sort, for example by Model (Reported) to see whether the failures share a model. Export as CSV takes the whole list. Press a row to open the device in Device details.

Reading what the scripts printed#

The panel does not show script output. For that, open the Proactive Remediation Detail view in Query Hub and add the columns you need:

  • Pre-Remediation Output and Pre-Remediation Error: what detection printed before the fix.
  • Remediation Output and Remediation Error: what the fix printed.
  • Post-Remediation Output and Post-Remediation Error: what detection printed afterwards.

You can filter on any of them, for example every device whose Remediation Error contains “Access is denied”. See Building a query.

Scripts#

Scripts, with a count of devices in each run state.
Scripts, with a count of devices in each run state.

There is one row for each PowerShell script in each Intune tenant, sorted by Error, highest first.

ColumnWhat it counts
CustomerThe customer the tenant belongs to. Only shown when you look after several customers and have not picked one.
Intune TenantThe tenant the script lives in.
Script NameThe script’s name in Intune.
Total DevicesDevices that have reported a run state for this script.
SuccessDevices where the script ran and succeeded.
FailDevices where Intune reports the run as failed.
ErrorDevices where Intune reports an error running it.
PendingDevices that have not reported a result yet.

Unlike remediations, a device is counted in one outcome column only.

The devices behind a script#

Press a script to open its devices.

ColumnWhat it means
Script NameThe script you opened.
DeviceThe device’s name.
UPNThe user Intune reported the run against.
Run StateSuccess, Fail, Error or Pending, as Intune reports it.
Result StateIntune’s result for the run.
Error CodeThe error code Intune recorded, if any.
ModifiedWhen Intune last updated this run.

Sorting, exporting and opening a device work as they do for remediations.

The Script Run State Detail view in Query Hub has more columns for the same rows, including Result Detail, Error Description, Policy Version and OS Version (Reported).

Finding your way around both lists#

  • Search… matches any part of the name.
  • Add Filter narrows the list by Customer, Intune Tenant, or Remediation Name (or Script Name).
  • Press a column heading to sort.
  • Columns opens Select Columns to show, hide and reorder columns. Reset to Defaults puts them back. Your layout is remembered.
  • Export as CSV downloads every matching row with the columns you have showing.

The same data elsewhere#

In Query Hub, Proactive Remediations and Script Run States are these two lists, and Proactive Remediation Detail and Script Run State Detail are the rows for each device, with every device column available for filtering and grouping. Proactive Remediation Summary and Script Run State Summary are ready-made reports under Policy Health.

For one device, Device details has a Remediations section and a Scripts section with that device’s results.

Why does it show that?#

The list is empty#

Either the tenant has no remediations or scripts in Intune, or Backup Policies is off for the tenant. Eido learns which remediations and scripts exist from the policies it backs up, so with that switch off it has nothing to ask Intune about. Switch it on in Tenant settings and wait for the next sync.

A remediation or script is missing#

A remediation or script appears once at least one device has reported a run of it, and once Eido has synced the tenant since. One that was added to Intune within the last hour or so, or that no device has run yet, is not listed.

The remediation columns add up to more than Total Devices#

A device is counted in every column that is true for it. See Remediations.

A device that keeps being fixed is not in its own column#

A device with a Remediation Status of Recurred is counted under Issue Found, because detection has found the problem again. Open the remediation and sort by Remediation Status to see those devices.

My macOS shell scripts are not here#

Scripts lists Windows PowerShell scripts. Shell scripts for other platforms are not included.

The counts are higher than the rows I can open#

The list counts every device Intune reported a run for. The rows behind a remediation or script are limited to devices that are in Eido today, so a run on a device that has since been removed from Intune, or that is outside your device scope, is counted and not listed.

Which region is your Eido account in?

Each region has its own sign-in, so this page opens in the region you choose.

Not sure? The Login to Eido button in your welcome email opens the right one. See finding your region.

Does your organisation have its own Eido address, such as yourcompany.eido.io? Use the help there instead, at yourcompany.eido.io/help.

Popular

Your first dayA guided tour of a newly connected tenant, from the Get Started page to your first dashboard, device, report and alert.User guideDevice detailsEverything Eido knows about one device, from its hardware and patches to every policy and app assigned to it.User guidePatch ComplianceWhich devices are behind on security patches, how far behind, and how Eido decides when that becomes a problem.User guideBuilding a queryChoosing a view, picking columns, sorting and paging the results, and what every view in Query Hub holds.Query HubThings to ask OdieExample requests for Odie, grouped by what you get back, from a quick count to a finished dashboard, a workbook or a report in your inbox.User guideApp MeteringSee which applications are really used, by whom and for how long.User guideAlertsSend an email, a Slack or Teams message, a webhook call or a ServiceNow incident when Eido raises or clears an issue.AdministrationConnecting IntuneLinking your first Intune tenant to Eido, including who has to approve it, the access level to choose, what Microsoft asks you to accept and what happens during the first sync.Set up and account