PowerShell removal of MS Office 365
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.
Windows & Devices
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.
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.
@NayrI I don't know if you have already seen this or if it will help but I found this:
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.
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).
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!!