This PowerShell script automates application lifecycle management in Microsoft Intune using the WinTuner module. It streamlines the process of:
- Checking for app updates and deploying newer versions
- Searching for and adding new apps from the Winget repository
- Cleaning up old or superseded Intune apps
- Assigning apps to users/devices (Available or Required)
- Interactive menu for update, add, and cleanup
- Supports app assignment to All Users, All Devices, or Group Object IDs
- Detects PowerShell 7
- Ensures WinTuner is installed and up to date
- Prompts for WinTuner authentication
- PowerShell 7 or later
- WinTuner module (auto-installed if missing)
- Admin rights to Microsoft Intune environment
Run the script from an elevated PowerShell 7 terminal:
./wintuner-auto.ps1Follow the prompts to:
- Choose a packaging directory
- Authenticate with Intune via WinTuner
- Select Update, Add, or Cleanup operations
- Virtual Caffeine IO