Share via


Microsoft Office Desktop Apps

Question

Monday, July 23, 2018 7:37 PM

How do you remove this soft from all users?

David

All replies (5)

Tuesday, July 24, 2018 5:17 PM ✅Answered

You could try to uninstall Microsoft Office Desktop Apps by using the following script as Administrator.

You will find the original post by clicking the link below. Answer by Karthik02.

https://social.technet.microsoft.com/Forums/en-US/fb3e28ac-4999-46e5-9d86-a1e08f3bf6fd/how-to-disable-microsoft-office-store-apps-completely?forum=win10itprogeneral

$computerList ="" #List of the computers that you wish to target with the script
$creds = Get-Credential  #make sure that this is an Administrator account

foreach($computer in $computerList){

    #Test to see if the computer will accept the connection before continuing
    if(Test-Connection -ComputerName $computer -Quiet){

        #Create a Powershell session on the target machine with the admin credentials from earlier
        $session = New-PSSession -ComputerName $computer -Credential $creds

        #Run the script on the target machine
        Invoke-Command -Session $session -ScriptBlock {
            $packages = "Microsoft.Office.Desktop"
            ForEach ($item in $packages) { 

                Get-AppXProvisionedPackage -Online | where DisplayName -EQ $item | Remove-AppxProvisionedPackage -online 
            }
        }

        #Tidy up the powershell session on the target mechine
        Remove-PSSession $session
    }
}


Wednesday, July 25, 2018 7:02 PM ✅Answered

Thank you.

The command Line I used to fix this issue. This command will fix this issue for any new users. For the current user you will have to uninstall.

I replaced $item with Microsoft.Office.Desktop

**Get-AppXProvisionedPackage -Online | where DisplayName -EQ Microsoft.Office. Desktop | Remove-AppxProvisionedPackage -online **

David


Tuesday, July 24, 2018 8:01 AM

Hi,

What's type of this program, UWP or Classic /desktop program?

If it's desktop program, just go to Control Panel -> Program -> Uninstall a program, select the program you want to remove, click Uninstall.

If it's UWP program, remove it via PowerShell command:

Get-appxpackage -allusers | where-object {$_.packagename -like "*3dbuilder*"} | remove-appxpackage

Note: Replace the *3dbuilder* to your actual package name.

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, July 24, 2018 8:05 AM

Hi David.

The most reliable way to completely remove Microsoft Office applications is running the removal tool that you can download from https://support.office.com/en-us/article/uninstall-office-from-a-pc-9dd49b83-264a-477a-8fcc-2fdf5dbf61d8.

Bye.

Luigi Bruno
MCP, MCTS, MOS, MTA


Tuesday, July 24, 2018 4:31 PM

This is the software I am trying to remove. For some odd reason I have performed the command line, but it is not working. It is still presenting even after I have performed this command line in elevate Powershell.

Get-appxpackage -allusers | where-object {$_.packagename -like "*3dbuilder*"} | remove-appxpackage

David