Skip to content
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script

Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script

Written By Vaishnav K
Last Updated July 2, 2025
Posted In Intune
SHARE

In this article, let’s learn how to Fix Classic Outlook Crashes using Microsoft Intune PowerShell Script. It is occurring during the opening or when starting a new email. The Outlook error 0xc0000409 is commonly reported when users try to open Classic Outlook or compose a new email. This issue occurs because Outlook cannot open the Forms Library.

A quick way to begin troubleshooting is to start Outlook in Safe Mode by running Outlook.exe /Safe from the Run dialog. If Outlook opens without crashing in Safe Mode, it’s likely that an add-in is causing the issue and should be disabled from the COM Add-ins menu under File > Options > Add-ins.

Another effective fix is to repair or recreate the Outlook profile. To do this, go to Control Panel > Mail > Show Profiles, and either repair the existing profile or create a new one and set it as the default. If the issue persists, it’s also worth checking for recent Windows or Office updates, as Microsoft often releases patches for stability issues like this. Rolling back recent updates, especially if the crash started after a Windows or Office update, has resolved the issue in some environments.

For organizations using Microsoft Intune, IT admins can deploy a PowerShell remediation script to automate the fix already released by Microsoft. In enterprise environments, managing this error centrally helps ensure minimal downtime. You may be able to fix the issue by creating the FORMS2 folder. This folder is expected to exist at C:\Users\<username>\AppData\Local\Microsoft\FORMS2.

Patch My PC
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 1
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 1

Create a Remediation Script in Intune to Fix Classic Outlook Crashes

Follow these steps to fix Classic Outlook Crashes using the Intune PowerShell Script. I will be using the Remediations script to configure it. Log in to the Microsoft Intune Admin Center using your admin credentials.

  • Navigate to DevicesWindows > Scripts and remediations
  • Click on Remediations+Create
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 2
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 2

In the Basics details pane, we can name the PowerShell script as “Fix Classic Outlook Crashes when Opening or Starting a New Email” If necessary, provide a brief description of the script here am giving “Fix Classic Outlook Error 0xc0000409 that Crashes when Opening or Starting a New Email.” and click Next.

Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 3
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 3

Write PowerShell Detection and Remediation Scripts to Fix Classic Outlook Crashes when Opening or Starting a New Email

Let’s write two PowerShell scripts from scratch to fix Classic Outlook Crashes when opening or starting a New Email, which we deploy in bulk. Save the scripts in a .ps1 file format. Find Microsoft’s official documentation explaining this issue, Classic Outlook crashes opening or starting a new email

Detection PowerShell Script

###############################################################################

#Fix Classic Outlook Crashes when Opening or Starting a New Email
#Author : Vaishnav K
#LinkedIn : https://www.linkedin.com/in/vaishnav-k-957b0589/ 
#Website: https://www.anoopcnair.com/author/vaishnavkuruvaikandy

###############################################################################

# Define the path to the Forms2 directory
$Forms2Path = Join-Path -Path $env:LOCALAPPDATA -ChildPath "Microsoft\FORMS2"

try {
    # Check if the path exists
    if (Test-Path -Path $Forms2Path -ErrorAction SilentlyContinue) {
        # Path exists - successful exit
        exit 0
    } else {
        # Path does not exist - error exit
        exit 1
    }
} catch {
    # Exception occurred - error exit
    exit 1
}

Remediation PowerShell Script

###############################################################################

#Fix Classic Outlook Crashes when Opening or Starting a New Email
#Author : Vaishnav K
#LinkedIn : https://www.linkedin.com/in/vaishnav-k-957b0589/ 
#Website: https://www.anoopcnair.com/author/vaishnavkuruvaikandy

###############################################################################

# Define the path to the FORMS2 directory
$Forms2Path = Join-Path -Path $env:LOCALAPPDATA -ChildPath 'Microsoft\FORMS2'

# Check if the directory exists; if not, create it
if (-not (Test-Path -Path $Forms2Path -ErrorAction SilentlyContinue)) {
    $paramNewItem = @{
        Path          = $Forms2Path
        ItemType      = 'Directory'
        Force         = $true
        Confirm       = $false
        ErrorAction   = 'SilentlyContinue'
        WarningAction = 'SilentlyContinue'
    }

    # Create the directory silently
    $null = New-Item @paramNewItem

    # Clear the variable for safety
    $paramNewItem = $null
}

# Clean exit - let Intune re-evaluate detection rules
exit 0

Note! I’ve uploaded the PowerShell Script to my GitHub Repo, so feel free to check it out for your needs. Download from here: Dectection_ClassicOutlook_Crash.ps1 & Remediation_ClassicOutlook_Crash.ps1

In the Script settings pane, we can set the configurations according to our requirements. The Detection script file and Remediation script file are mandatory; we must browse and select our saved PS Script here.

  • Detection script file – Browse and select the saved script Dectection_ClassicOutlook_Crash.ps1
  • Remediation script file – Browse and select the saved script Remediation_ClassicOutlook_Crash.ps1
  • Run this script using the logged on credentials – No
  • Enforce script signature check – No
  • Run script in 64 bit PowerShell Host – Yes
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 4
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 4

On the next page, keep the default scope tags. If any custom scope tags are available based on your requirements, you can select them for this script deployment.

Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 5
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 5

Click on Next and assign the script to HTMD – Test Computers. You can click Assign to and select the desired device group in the Selected groups section.

Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 6
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 6

On the Review + create pane, thoroughly check all the settings you have defined for Fix Classic Outlook Crashes when Opening or Starting a New Email. Once you confirm everything is correct, select Create to implement the changes.

Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 7
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 7

Monitor the Fix Classic Outlook Crashes when Opening or Starting a New Email Deployment

This Intune PowerShell Script has been deployed to the Microsoft Entra ID group (HTMD – Test Computers). The policy will take effect based on our configured Schedule. To monitor the policy deployment status from the Intune Portal, follow the steps below.

  • Navigate to Devices > Windows > Scripts and remediations > Remediations

Search for the “Fix Classic Outlook Crashes when Opening or Starting a New Email” Script. The deployment status for this script can be seen under the Overview status. We can see that both the Detection status and the Remediation status and both are worked as expected!

Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 8
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 8

End User Experience

We need to verify if the Intune PowerShell Script has Fix Classic Outlook Crashes when Opening or Starting a New Email. Log in to one of the targeted devices for the policy. Open the File Explorer and follow the path below.

  • C:\Users\HTMDTestAccount\AppData\Local\Microsoft or Open Run and type %localappdata%\Microsoft

We can see the “FORMS2” folder has been successfully created and our PowerShell Remediation script deployment is working as expected!

Note! You can also run this remediation script on-demand for individual devices. To do this, navigate to Device > Windows. Click on the device you want to run the script, click on the three dots in the upper right corner, select the script titled “Fix Classic Outlook Crashes When Opening or Starting a New Email,” and then choose “Run remediation

Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 9
Best way to Fix Classic Outlook Crashes using Intune PowerShell Remediation Script. Fig. 9

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, join the WhatsApp Community to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Vaishnav K has over 11 years of experience in SCCM, Device Management, and Automation Solutions. He writes and imparts knowledge about Microsoft Intune, Azure, PowerShell scripting, and automation. Check out his profile on LinkedIn.

Written by

Vaishnav K has over 12+ years of experience in SCCM, Modern Device Management, and Automation Solutions. He writes and imparts his knowledge about Microsoft Intune, Windows 365, Azure, PowerShell scripting and automations. LinkedIn Profile : https://www.linkedin.com/in/vaishnav-k-957b0589/

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Simplify Windows Devices to Run Only the Required Applications using Intune

Key Takeaways Hey, let’s learn about Simplify Windows Devices to Run Only the Required Applications using Intune. This policy lets administrators replace the default windows shell with a custom or lightweight shell. it improves performance by using system resources and is useful for devices that run a dedicated application. If the policy is disabled or […]

AC Anoop C Nair 8 min read
Intune

Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune

Key Takeaways In this post we are discussing about Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune. Microsoft has announced the general availability of Custom Compliance Settings for macOS in Microsoft Intune. The feature helps organizations strengthen security controls while supporting many types of macOS management scenarios. […]

AC Anoop C Nair 4 min read
Intune

Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune

Key Takeaways In this post we are discussing Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune. Microsoft Intune has received a new update that expands firmware management capabilities for Samsung Galaxy devices through Firmware Versionsintegration. This enhancement gives IT administrators more control over firmware and operating system updates, helping them […]

AC Anoop C Nair 4 min read
Intune

MS Intune Adds Windows Registry Data Collection to Device Inventory for Single Values All Key Values and Subkeys

Key Takeaways Microsoft Intune 2607 introduces Windows Registry Data collection in Device Inventory, allowing IT admins to verify actual device configurations without relying on custom discovery or remediation scripts. Using the Properties Catalog, admins can collect registry information through Single Value, All Values Under a Key (Non-Recursive), or Same Value Across Subkeys. MS Intune Adds […]

AC Anoop C Nair 5 min read