Hero Banner

Products Discussions

Share best practices and get the latest Microsoft product info

Reply
NayrI
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:

NayrI_0-1661403676906.png

 

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.
Cheers
Ryan (Nayr)

6 REPLIES 6
rachelgomez_123
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.

Regards,

Rachel Gomez

v-jillarmour
Community Manager

@NayrI WELCOME to the community!!

 

Tracking to make sure we get an answer for you. 

NayrI
Level 2 Contributor

Thanks V.

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

NayrI_0-1661470468170.png

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?

NayrI_1-1661471016770.png


Thanks in advance for your attention.

Cheers
Ryan

v-jillarmour
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. 

 

NayrI
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).

v-jillarmour
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!!