Introduction
Microsoft Intune now supports using a PowerShell script as the installer for Win32 apps. Instead of specifying a command line, you upload a script. This gives admins more flexibility when deploying applications.
I’ve created a template (install and uninstall) that can serve as inspiration, but also demonstrates how this enables you to:
• Install or uninstall an application (MSI or EXE)
• Copy or remove files to or from any directory
• Add or remove registry settings
All as part of the same deployment. The script handles both SYSTEM and current user context – and when running as SYSTEM, it applies file and HKCU registry changes to all existing user profiles on the device.
The template is available on GitHub: imabdk/Intune-Win32-PowerShell-Script-Installer-Template 🙂









