Stepwise Guide on How to Uninstall Application Remotely with Powershell

Here in this post, we provide you with the ways on how to uninstall application remotely with Powershell. Keep reading!


By Ellie / Updated on November 24, 2022

Share this: instagram reddit

Can I uninstall the application remotely with Powershell?

“My user works from home, but he is connected to our internal network. I have a remote access program that I can use to connect to his system, but according to our office policy, I can't remove programs unless I'm logged in to my special admin account. So, can you tell me how to uninstall the application remotely with Powershell? Thank you ahead of time.”

How do I uninstall a program remotely in Powershell?

Here in this part, we’ll talk about the concrete ways how to uninstall application or programs remotely with Powershell. Keep reading!

Part 1: Connect to the remote computer

First and foremost, we must successfully connect to the remote PC. We recommend using AnyViewer as your helper to remotely access a PC with minimal effort. It is a recently developed remote access tool that appeals to a large number of people due to its ease of use, fast connection speed, and high responsiveness. You can get a one-click remote connection with it if you log into the same AnyViewer account on both devices.

☞ Important: To control a PC from iPhone or iPad, you can use AnyViewer iOS version to help you achieve the goal.

Download Freeware Win 11/10/8.1/8/7
Secure Download

Step 1. Install AnyViewer. Sign up for the AnyViewer account and then log in to this account on the two computers. Once logged in, the PC will be assigned to the account automatically. 

Log in AnyViewer

Step 2. After logging in, you can see your interface in the following picture. 

Free Editions

Step 3. On the client computer, go to "Device", locate and click the PC that you need to control. And then click "One-click control" to achieve a remote connection with one click. 


Step 4. Now the connection is successfully being established. 

☞ Note: You can also upgrade your account to Professional or Enterprise edition to assign more devices and to connect to another computer in privacy mode.

 If 2 PCs are on the same network, you can also choose Remote Desktop to help you remotely access the PC. (If 2 devices are not on the same LAN, you may need to perform port forwarding with RDP.)

Step 1. Enable the Remote Desktop of remote PC.

Remote Desktop

Step 2. On the local PC, search remote desktop connection in the search box and then open it.


Step 3. Enter the IP address of the remote PC and click on “Connect”.

Enter IP of the Host Computer

Step 4. You’ll be asked to enter the credentials of the remote PC. Once it is accomplished, the remote connection is successful.

Part 2: Uninstall the application remotely with Powershell

In this part, we'll offer the batch script to uninstall software remotely with Powershell. Follow me to get the concrete steps to use it.

  • Uninstall application

Step 1. On the host PC, search Powershell in the search box and then right-click on it, choose “Run as administrator”.

Run Powershell from Search

Step 2. Now the window of PowerShell is being opened. Enter the following line and then press the Enter key:

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

Property Name

Step 3. Now you can see a list with the name of your application.

Step 4. Figure out the application name that you want to uninstall. Suppose you want to uninstall Chrome Remote Desktop Host, enter the following name and press the Enter key:

$MyApp = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "Chrome Remote Desktop Host"}

Step 5. Keep entering the line after running the last line:



Step 6. Now the application is being removed.

  • Uninstall package

Sometimes, we may find that the application that we want to remove is not on the list in Powershell. Under the circumstance, we can use uninstall-package as the solution. Suppose the name of the package is called “BackZilla.

Step 1. Search Powershell in the search box and then right-click on it. Choose “Run as administrator”.

Run Powershell from Search

Step 2. On the Powershell windows, enter the following line(Replace the BackZilla” as the name of the package that you want to uninstall:

Get-Package -Provider Programs -IncludeWindowsInstaller -Name “BackZilla”

Step 3. After that, enter the following line:

Uninstall-Package -Name BackupZilla 3.0

Step 4. Now the package can be uninstalled successfully.


Now you may figure out how to uninstall the application remotely with Powershell. By connecting to the remote PC and then entering the command line, we can remove the application remotely. For the ways to connect to the remote PC, you can use AnyViewer. Of course, if 2 PCs are on the same network, Remote Desktop is also a good choice.