How To Remotely Uninstall Program From Client Computer Using Domain PowerShell

Vai al contenuto principale
Categories
You are here:
< Back

Open PowerShell as an administrator

 

Connect to the remote computer

Enter-PSSession -ComputerName Pc Name

 

List of installed programs

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

 

Uninstall the desired program by copying the full name from the list obtained with the previous command.

$App = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “Program Name”}

replace “Program Name” with the full name of the program

 

Complete the uninstallation with the following command

$App.Uninstall()

At this point, the application will be uninstalled.

 

You can check the list of installed programs by repeating the command

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

The removed program should no longer appear on the list.