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.
| 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 |
- Open Microsoft Intune admin center (
https://intune.microsoft.com). - Navigate to Devices > Remediations (under Manage devices).
- Click + Create script package.
- Configure Basics (Name and Description).
- In Settings:
- Upload the corresponding
Detection.ps1file into Detection script file. - Upload the corresponding
Remediation.ps1file 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.
- Upload the corresponding
- In Assignments: Assign to your target device groups and set an execution schedule (e.g. Daily or Hourly).
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).