Skip to main content

Microsoft Office - Uninstall

Summary

Office is non-removable via winget. This procedure silently removes Office.

Example Agent Procedure Log

TimeActionStatusUser
06:34 am 10-Jul-23Microsoft Office - UninstallSuccess THENderek.joniak
10:06:34 am 10-Jul-23Microsoft Office - Uninstall-0003Success ELSEderek.joniak
10:06:34 am 10-Jul-23Microsoft Office - Uninstall-0002Success ELSEderek.joniak
10:06:33 am 10-Jul-23Microsoft Office - Uninstall-0001Success THENderek.joniak
10:06:33 am 10-Jul-23Microsoft Office - Uninstall-0001Log: 2023-07-10 10:56:26 INIT...derek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)Success THENderek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0001Success THENderek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0002Success THENderek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0011Success THENderek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0014Success THENderek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0015Success THENderek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0016Success THENderek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0016Powershell command complete...derek.joniak
10:06:33 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0016Informational: GetFile command...derek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0011Executing 64-bit Powershell command...derek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0012Success THENderek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0013Success THENderek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0013Sending output to global variable.derek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0003Success ELSEderek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0008Success THENderek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0009Success ELSEderek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0010Success ELSEderek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0008Custom commands detected as...derek.joniak
10:06:27 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0003No powershell file variable detected.derek.joniak
10:06:25 am 10-Jul-23Execute Powershell Command (64-bit, Run As System)-0002Powershell is present.derek.joniak
10:06:16 am 10-Jul-23Execute Powershell CommandSuccess THENderek.joniak
10:06:16 am 10-Jul-23Execute Powershell Command-0001Success THENderek.joniak
10:06:16 am 10-Jul-23Execute Powershell Command-0002Success THENderek.joniak
10:06:16 am 10-Jul-23Execute Powershell Command-0011Success THENderek.joniak
10:06:16 am 10-Jul-23Execute Powershell Command-0012Success ELSEderek.joniak
10:06:16 am 10-Jul-23Execute Powershell Command-0011Powershell command completed!derek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0011Executing powershell...derek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0009Success THENderek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0010Success ELSEderek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0010Not sending output to variable.derek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0007Success THENderek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0008Success THENderek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0008New command variable is...derek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0008Custom commands detected as...derek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0003Success THENderek.joniak
10:06:14 am 10-Jul-23Execute Powershell Command-0004Success ELSEderek.joniak
10:06:12 am 10-Jul-23Execute Powershell Command-0002Powershell is present.derek.joniak

Process

The procedure uses Invoke-OffScrub.
Invoke-OffScrub Script

Output

AP Log