A PowerShell script that uninstalls all Microsoft 365 applications that come pre-installed by default on certain PCs.
It first enables the script execution policy in PowerShell (Set-ExecutionPolicy Unrestricted -Force
) and then searches for all applications containing *Microsoft 365*
and uninstalls them.
Very useful for IT administrators.
Based on:
Script To Silently Uninstall Built-In Office 365 ClickToRun
by u/timurleng in sysadmin