Skip to content

About

12 production Intune proactive remediation packages for self-healing enterprise Windows fleets.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

🛡️ Microsoft Intune Proactive Remediation Scripts

A production-tested library of Intune Proactive Remediations (Detection & Remediation script packages) designed for Microsoft Endpoint Manager (Intune) to automatically detect, alert, and self-heal common Windows endpoint issues.


📦 Proactive Remediation Catalog

Remediation Package Detection Logic Remediation Action Recommended Context
Auto remove Proactive Remediation script Checks for stale remediation policies in registry Cleans up orphaned IME sidecar policy registry keys System
Block keyboard shortcuts Checks if Windows Hotkeys (NoWinKeys) are disabled Enforces registry policy disabling Win keys for kiosks User / System
Compare Lenovo BIOS version Queries WMI for installed BIOS vs baseline version Flags outdated firmware and logs upgrade requirement System
Detect BSOD and send logs Audits Event Log (Event ID 1001 BugCheck) in last 24h Collects and archives minidump files for investigation System
Detect drivers issues Scans Get-PnpDevice for error states (Code 10/28/43) Restarts faulty hardware devices and initiates rescan System
Export Proactive Remediation to CSV Admin Graph automation Exports fleet-wide remediation status to CSV Admin Session
Low disk space notification Checks if free space on C: is below 10% threshold Cleans temp files and sends toast alert to end-user System
Reboot warning Checks if system uptime exceeds target threshold (e.g. 7 days) Displays notification prompting user to reboot User
Recycle Bin size alert Calculates Recycle Bin size across all user profiles Purges aged items and alerts user if bloated User / System
Remediate local admin Queries local Administrators group for unauthorized users Removes non-compliant accounts, enforcing LAPS / Zero Trust System
Set BIOS password Interrogates Lenovo WMI (Lenovo_BiosPasswordCheck) Programs BIOS Supervisor Password remotely System
Toast notification SYSTEM context Validates active user desktop session Pops modern Windows 10/11 toast alert from SYSTEM System

🛠️ Deployment Instructions in Microsoft Intune

  1. Open Microsoft Intune admin center (https://intune.microsoft.com).
  2. Navigate to Devices > Remediations (under Manage devices).
  3. Click + Create script package.
  4. Configure Basics (Name and Description).
  5. In Settings:
    • Upload the corresponding Detection.ps1 file into Detection script file.
    • Upload the corresponding Remediation.ps1 file into Remediation script file.
    • Select Run script using logged-on credentials: Set to No (unless user-context is specified in catalog above).
    • Enforce script signature check: No.
    • Run script in 64-bit PowerShell: Yes.
  6. In Assignments: Assign to your target device groups and set an execution schedule (e.g. Daily or Hourly).

📊 Exit Code Standards

All scripts in this repository follow Microsoft Intune remediation standards:

  • Exit code 0: Detection passed (Device is compliant / No issue found).
  • Exit code 1: Detection failed (Issue detected / Triggers remediation script).

About

12 production Intune proactive remediation packages for self-healing enterprise Windows fleets.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages