This script is highly effective for automated bulk removals across multiple machines.
For IT administrators or users who cannot install the SaRA tool, Microsoft offers a command-line alternative called OffScrub . This is often included in enterprise deployment kits or available via GitHub repositories maintained by Microsoft.
– Specifically targets common error codes (e.g., 30015-4, 30125-4, 0-1018) that prevent new Office installations.
.\OffScrub_O365.ps1