Hero Banner

Products Discussions

Share best practices and get the latest Microsoft product info

Level 2 Contributor

PowerShell removal of MS Office 365

Hi Team

First time poster. I'm attempting to remove, via PowerShell, the Microsoft Dynamics 365 for Finance and Operations: Document Routing (DRA - Document Routing Agent).

As one can see, it is clearly visible in Control Panel:



However, when I execute the PS script below to display all software installed on the machine, the above highlighted does not appear for some reason? I know that this installs from a .MSI, so should in theory be able to be removed silently.

Get-WmiObject -Class Win32_Product | Select-Object -Property Name


Any answers greatly appreciated.
Ryan (Nayr)

Level 5 Contributor

Uninstall Microsoft 365 manually using PowerShell
Right-click Start. and select Windows PowerShell (Admin).
In the Windows PowerShell window, type the following: Get-AppxPackage -name “Microsoft.Office.Desktop” | Remove-AppxPackage.
Press Enter. This takes a few minutes. Once it's done, a new command prompt appears.


Rachel Gomez

Community Manager

@NayrI WELCOME to the community!!


Tracking to make sure we get an answer for you. 

Level 2 Contributor

Thanks V.

Just to add to my OP, using the "Get-Package" command, I can see it:


However now the problem morphs slightly in being unable to uninstall it using the Uninstall-Package command, the system saying that it cannot find the package?


Thanks in advance for your attention.


Community Manager

@NayrI I don't know if you have already seen this or if it will help but I found this:


Remove Microsoft 365 licenses from user accounts with PowerShell


Other than that I don't have any answers for you, I'm sorry! I would suggest submitting a support ticket at  Partner Support Center for further assistance and we can keep tracking this string in case someone else has some knowledge around it. 


Level 2 Contributor

Thanks for the reply, to confirm though, I am not seeking to remove the Office licence - merely a component of the suite (the Document Routing Agent).

Community Manager

Ok, I don't think I have any other help to offer, this is not my area of expertise.  I would suggest the support route as I mentioned in my previous post. Keep us posted on how it goes!!