Introduction
Following up on my previous post about the new Outlook client, I want to share a quick update. The new Outlook now comes preinstalled on Windows 11 version 23H2 and later. In this post, I’ll provide a PowerShell script to help you uninstall it automatically across your devices using Microsoft Intune.
More details on the preinstalled new Outlook: Control installation and use of new Outlook – Microsoft 365 Apps | Microsoft Learn
PowerShell
You can find the script located in my GitHub repository here: Proactive-Remediations/Detect-Remediate-Uninstall-NewOutlook.ps1 at main · imabdk/Proactive-Remediations
The script accepts 2 parameters: -runDetection and -runRemediation.
-runDetection
This part of the script is detecting whether the new Outlook is installed. If the new Outlook is installed, the script will exit with exit code 1, instructing Microsoft Intune to kick off the remediation script.
-runRemediation
This part of the script performs the remediation, making sure to uninstall the new Outlook for the logged-on user.
Microsoft Intune
Put the script to use with Microsoft Intune and the Remediation feature. The script comes a standalone script, but running this with Microsoft Intune and Remediation, requires 2 scripts.
The first script where -runDetection is set to $true and -runRemediation is to $false. The second script where both are set to $true.