PowerShell, Intune and Microsoft Graph field notes

Scripting

Every field note tagged Scripting, newest first. 9 posts so far.

Posts

2026

  1. PowerShell try/catch: why it misses errors

    Make try/catch catch cmdlet errors and native command failures, so that your Intune scripts stop reporting success when they fail.

  2. Build Terminal Presentations with PowerShell

    TerminalSlides lets you build a versionable presentation in PowerShell, deliver it from a terminal, and export the same deck for docs or CI.

  3. Build a Reusable Intune Remediation Template

    A reusable PowerShell pattern for Intune Remediations with predictable exit codes, logging, 64-bit handling, and portal-friendly output.

  4. Using .NET Methods in PowerShell (with practical examples you'll actually reuse)

    PowerShell is already sitting on top of .NET. Here are the patterns I use most: strings, paths, file I/O, time, crypto, and more.

2025

  1. Finding WMI Usage Before Microsoft Finds It For You

    Microsoft is deprecating WMIC and legacy WMI cmdlets. Find every instance in your codebase before your scripts start breaking in production.

2024

  1. Automating Device Management with PowerShell: Function Invoke-AppInstalledDevicesGroup

    Build a device group in Intune based on detected application installs - automatically add and remove devices as software appears and disappears.

  2. Streamlining Application Detection in Intune and MECM with PowerShell

    A PowerShell function for precise application detection across 32-bit, 64-bit, and user-context installs - perfect for Intune Win32 app detection.

2023

  1. Find Registry Uninstall Keys with PowerShell

    A PowerShell function to search the Windows registry for uninstall keys matching a specified string, with support for 64-bit and 32-bit applications.