How to uninstall entire linkedin from windows 10 pro

HUY DO QUANG 1 Reputation point
2022-02-25T10:14:36.68+00:00

Hi all,

We are using Win10 PCs for our company and found that linkedin software is installed on many accounts.

We tried to use powershell to uninstall linkedin for all accounts but not successful.

Below is the command and error message, I ran this command under administrator account.

Please share your experience and support me.

Command: Get-AppxPackage -allusers 7EE7776C.LinkedInforWindows | Remove-AppxPackage -allusers

Error message:

Remove-AppxPackage : Removal failed. Please contact your software vendor.
Deployment Remove operation with target volume C: on Package
7EE7776C.LinkedInforWindows_2.1.7098.0_neutral__w1wdnht996qgy from: failed with error 0x80070002. See
http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
At C:\Users\70F3644\Desktop\uninstallProhibitedsoftware\uninstall.ps1:1 char:59

  • ... allusers 7EE7776C.LinkedInforWindows | Remove-AppxPackage -allusers
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
  • FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
    ds.RemoveAppxPackageCommand
Windows for business | Windows Server | User experience | PowerShell
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2022-02-28T15:25:25.913+00:00

    Hello @HUY DO QUANG

    This error is usually due to execution issue related to access to the manifests of the application.

    First, try a repair of the computer following: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image?view=windows-11
    Then clean up the WinSxS folder: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder
    Then manually execute (with admin permissions): Get-AppxPackage linkedin | Remove-AppxPackage -allusers

    Hope this helps with your query,

    --
    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Rich Matheisen 47,901 Reputation points
    2022-02-28T15:49:44.647+00:00

    Try something like this:

    $appname = "Application-DisplayName-goes-here"    # LinkedInForWindows maybe?
    
    # get 64-bit software on 64-bit systems OR 32-bit software on 32-bit systems
    [array]$32_or_64bitsoftware = get-itemproperty 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*'
    # get 32-bit software ON 64-bit systems
    [array]$32_on_64bitsoftware = get-itemproperty 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
    [array]$32_AND_64bit = @()
    # check for software in both locations
    $32_AND_64bit = $32_or_64bitsoftware |
        Where-Object { $_.DisplayName -like "*$appname*" }
    $32_AND_64bit += $32_on_64bitsoftware |
        Where-Object { $_.DisplayName -like "*$appname*" }                            
    # was the app's display name found?        
    if ($32_AND_64bit.count -eq 0) {
        "'$appname' was not found on this system"
        Write-Verbose "'$appname' was not found on this system"
    }
    else {
        # uninstall all versions of this software
        $32_AND_64bit |
            ForEach-Object{
                Start-Process $_.UninstallString -Wait
            }
    }
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.