Skip to main content

Office Cleanup and M365 Deployment

Overview​

This Script uninstalls any version of Office and installs M365 apps

Sample Run​

Play Button > Run Automation > Script

SampleRun1

Dependenciess​

Parameters​

NameExampleAccepted ValuesRequiredDefaultTypeDescription
Versions to Uninstall2003,2007All, 2003, 2007, 2010, 2013, 2016, C2RFalseAllString/TextSpecifies Office Version that needs to be Uninstalled. Leaving the parameter blank will remove all installed versions.
XMLPathhttps://pathtoxml.com C:\Temp\FileName.xmlFalseString/TextInstalls Microsoft 365 using the specified XML configuration file. Supports both a local file path or a URL. If not provided, a default configuration is used.
Restart0 - 1FalseCheckboxOptional. Performs a system restart after installation.

Automation Setup/Import​

Automation Configuration

Output​

  • Activity Details

Changelog​

2026-30-04​

  • Initial version of the document