Skip to content
Intune Proactive Remediation Scripts Vs PowerShell Scripts

Intune Proactive Remediation Scripts Vs PowerShell Scripts

Written By Anoop C Nair
Last Updated September 4, 2024
Posted In Intune
SHARE

Let’s compare the features of Intune proactive remediation scripts and PowerShell scripts. The proactive remediation script helps detect and fix common support issues on a device, while the PowerShell scripts help complete a specific task.

Microsoft program manager II Avi Prasad mentioned the difference between the features of Intune proactive remediation scripts and PowerShell scripts on Twitter. This topic would be useful for many IT admins in modern device management.

Let’s check whether it’s a good idea to combine PowerShell scripts and Proactive remediations to improve the admin experience in the Intune (a.k.a. MEM) portal.

Avi is trying to get more feedback from the community on this topic, so I think it’s a good idea to combine both.

Patch My PC

Video Proactive Remediation Script Package

Let’s discuss Intune Proactive Remediation Script Package and PowerShell Script in this video. Advanced workflow to detect and remediate common issues with the PowerShell script package. Proactive remediations are part of Endpoint analytics.

Intune Proactive Remediation Scripts Vs PowerShell Scripts – Video 1

Intune Proactive Remediation Script

Let’s check what are the important features of the remediation script workflow in Intune. Learn how to start deploying Intune remediation scripts from the following post. Deploy Proactive Remediation Script Using Intune | Easy Method | Microsoft Endpoint Manager.

The script content preview option is available for detection and remediation scripts. The remediation script has logic similar to Configuration Items and Baselines in ConfigMgr.

Intune Proactive Remediation Scripts Vs PowerShell Scripts - Fig.1
Intune Proactive Remediation Scripts Vs PowerShell Scripts – Fig.1

The main difference between the PowerShell and remediation scripts is the scheduling option. I think it would be constructive if Microsoft could include the scheduling options for PowerShell. The following are the scheduling frequency options:

  • Once (no-rerun – Similar to PowerShell script).
  • Hourly – Rerun the script on customizable hourly intervals.
  • Daily – Rerun the script on customizable daily intervals.

NOTE! – Create a schedule for this script to run on devices in the group.

Intune Proactive Remediation Scripts Vs PowerShell Scripts - Fig.2
Intune Proactive Remediation Scripts Vs PowerShell Scripts – Fig.2

Intune will attempt to run the remediation script at the scheduled time, similar to SCCM. If Intune can’t reach the device, it will try to rerun the script when the device comes back online.

  • Time -> 12:00:00 AM.
  • Use UTC -> The default value is disabled.
Intune Proactive Remediation Scripts Vs PowerShell Scripts - Fig.3
Intune Proactive Remediation Scripts Vs PowerShell Scripts – Fig.3

PowerShell Script Options

The Intune PowerShell script options are minimal. You can find more details about the Best Way To Deploy Powershell Script Using Intune | Endpoint Manager. The following are three main features of the PowerShell script.

  • Run this script using the logged-on credentials.
  • Enforce script signature check.
  • Run the script in 64-bit PowerShell Host.
Intune Proactive Remediation Scripts Vs PowerShell Scripts - Fig.4
Intune Proactive Remediation Scripts Vs PowerShell Scripts – Fig.4

Proactive Remediation Scripts Vs PowerShell Scripts

Avi Prasad kindly shared a comparison sheet between proactive remediations vs. Intune PowerShell scripts. Microsoft did some analysis and realized that Proactive Remediations is a superset of the PowerShell scripts feature.

Intune Proactive Remediation Scripts Vs PowerShell Scripts - Fig.5
Intune Proactive Remediation Scripts Vs PowerShell Scripts – Fig.5

NOTE: Proactive remediation is included only with Microsoft 365 Business Premium licenses. The following are the licenses that include remediation script Enterprise Mobility + Security E3 or higher and Microsoft 365 Enterprise E3 or higher.

FeatureProactive RemediationsMEM PowerShell Scripts
64-bit PowerShell supportYesYes
Signature checksYesYes
Run using logged-on credsYesYes
Scope TagsYes?Yes
Frequency SchedulingYesNo
Time SchedulingYesNo
Script content previewYesNo
Intune Proactive Remediation Scripts Vs. PowerShell Scripts – Table 1

Proactive Remediation Licensing Requirements

As per Microsoft documentation, the Proactive remediation script deployment requires the licensing for Endpoint analytics and also requires users of the devices to have one of the following licenses:

  • Windows 10/11 Enterprise E3 or E5 (included in Microsoft 365 F3, E3, or E5)
  • Windows 10/11 Education A3 or A5 (included in Microsoft 365 A3 or A5)
  • Windows 10/11 Virtual Desktop Access (VDA) per user

Resources

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Anoop C Nair has been Microsoft MVP for 10 consecutive years from 2015 onwards. He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 14 comments

  1. Hey Anoop,
    Thanks for starting the conversation! I think another major difference is the return of status and data, and the ability to report on that.
    Thoughts?
    -Steve

    1. StaffHey Steve – I know we can use proactive remediation to get the status data and create reports based on that data. I think that is not the native functionality. isn’t it? This functionality is in the script that the community produced ..isn’t it?

      1. Hi Anoop,
        To me the differences are
        1. The scheduled re-running
        2. Having the 2 (detect and remediate) scripts effectively wrapped in a giant If-Then-Else with native reporting and output back to the intune console in the middle.

        In that respect strait Intune powershell scripts are like GPO’s… send them out there and hope for the best or roll your own return data and report on it. Where Remediation tells you “how many already had it, how many remediated and failed, how many still pending, etc”. Many times these are all the first questions from management after they tell you to change something.

        What would be great is for an expert in our community to write on the usage of write-host, write-output, write-warning, write-error, and various exit codes in these scripts to control the data returned back into the report columns! 😀 That data is hard to find.

        Thanks again!
        -Steve

  2. Hi!

    You write that proactive remediations is included in Microsoft 365 Business Premium, but I can not find any official information to confirm it. Do you have any references?

    Thanks!
    Dan

      1. StaffI’ve not extensively looked for the same information. I got the reference from Microsoft program manager II Avi Prasad via Twitter thread mentioned in the post.

  3. Is there any way to setup disk cleanup/delete old user profile using Proactive Remediation for Windows 10 devices?

  4. hi anoop. if we are using proactive remediation script to collect custom hardware inventory and the script has hardcoded customerId and workspace ID. what are the chances if the device managed by intune, should it fall in wrong hands, the actor would be able to delete the data stored in loganalytics, since he would have customer and workspace ID handy.

  5. If I want a script to run everyday at a scheduled time. Can I just put the script say its just a simple reg add script in the detection script area and it will rerun that reg add script everyday if I dont want to create an actual detection and remediation script?

  6. Hi Anoop. I’ve implemented some PR scripts following your pages, but I have a really strange issue and wondered if you could shed some light on it, as it relates to behavioral difference between a regular script and a PR.
    When I run this script as a regular user it returns the UPN (which is what I am looking for to pass to another script)

    $USERSID = Get-WmiObject -Class win32_computersystem | Select-Object -ExpandProperty Username | ForEach-Object { ([System.Security.Principal.NTAccount]$_).Translate([System.Security.Principal.SecurityIdentifier]).Value }
    $regEntryPath=”HKLM:\SOFTWARE\Microsoft\IdentityStore\Cache\” + $USERSID +”\IdentityCache\” + $USERSID
    $UPN = (Get-ItemProperty -Path $regEntryPath).Username
    write-output $UPN

    When I run it as a Proactive remediation (as logged on user) I get an arror saying that the path cannot be found.

    Really curious as to whats going in there and why there is a difference ?

  7. I see in this article it says: Proactive remediation is included only with Microsoft 365 Business Premium licenses.

    Is this new I was always under the impression that you need a M365 E3 or higher to use this functionality.

    Do you have a Source where it says you can use it with Microsoft 365 Business Premium?

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Simplify Windows Devices to Run Only the Required Applications using Intune

Key Takeaways Hey, let’s learn about Simplify Windows Devices to Run Only the Required Applications using Intune. This policy lets administrators replace the default windows shell with a custom or lightweight shell. it improves performance by using system resources and is useful for devices that run a dedicated application. If the policy is disabled or […]

AC Anoop C Nair 8 min read
Intune

Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune

Key Takeaways In this post we are discussing about Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune. Microsoft has announced the general availability of Custom Compliance Settings for macOS in Microsoft Intune. The feature helps organizations strengthen security controls while supporting many types of macOS management scenarios. […]

AC Anoop C Nair 4 min read
Intune

Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune

Key Takeaways In this post we are discussing Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune. Microsoft Intune has received a new update that expands firmware management capabilities for Samsung Galaxy devices through Firmware Versionsintegration. This enhancement gives IT administrators more control over firmware and operating system updates, helping them […]

AC Anoop C Nair 4 min read
Intune

MS Intune Adds Windows Registry Data Collection to Device Inventory for Single Values All Key Values and Subkeys

Key Takeaways Microsoft Intune 2607 introduces Windows Registry Data collection in Device Inventory, allowing IT admins to verify actual device configurations without relying on custom discovery or remediation scripts. Using the Properties Catalog, admins can collect registry information through Single Value, All Values Under a Key (Non-Recursive), or Same Value Across Subkeys. MS Intune Adds […]

AC Anoop C Nair 5 min read