How to turn a PowerShell script into a module
Turn a one-off PowerShell command into a script, an advanced function, and a module that your Intune remediation scripts can call.
PowerShell, Intune and Microsoft Graph field notes
Every field note tagged Scripting, newest first. 9 posts so far.
Turn a one-off PowerShell command into a script, an advanced function, and a module that your Intune remediation scripts can call.
Make try/catch catch cmdlet errors and native command failures, so that your Intune scripts stop reporting success when they fail.
TerminalSlides lets you build a versionable presentation in PowerShell, deliver it from a terminal, and export the same deck for docs or CI.
A reusable PowerShell pattern for Intune Remediations with predictable exit codes, logging, 64-bit handling, and portal-friendly output.
PowerShell is already sitting on top of .NET. Here are the patterns I use most: strings, paths, file I/O, time, crypto, and more.
Microsoft is deprecating WMIC and legacy WMI cmdlets. Find every instance in your codebase before your scripts start breaking in production.
Build a device group in Intune based on detected application installs - automatically add and remove devices as software appears and disappears.
A PowerShell function for precise application detection across 32-bit, 64-bit, and user-context installs - perfect for Intune Win32 app detection.
A PowerShell function to search the Windows registry for uninstall keys matching a specified string, with support for 64-bit and 32-bit applications.