How To Remotely Uninstall A Program using PowerShell
How To Remotely Uninstall and Install A Program using PowerShell?
How can I uninstall an application using PowerShell?,
Method 1:-
Connect the remote PC/Laptop or VM using below command:-
.\PsExec.exe \\remote pc host name -s powershell
Now Run below commands to uninstall the programs from remote pc/laptop or vm:-
1. Get-WmiObject -Class Win32_Product | Select-Object -Property Name
2. $App = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “”}
3. $App.Uninstall()
Method 2:-
1. Search ” Computer Management ” in search bar and Run as administrator.
2. Go on Connect to another system and Give remote pc name.
3. Make sure “Windows Remote Management” Service running on remote PC.
Now Run below powershell commands:-
1. Enter-PSSession -ComputerName GBLONXXXXX
2. cd c:\
3. Get-WmiObject -Class Win32_Product | Select-Object -Property Name
4. $App = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “Java 8 Update 391 (64-bit)”}
5. $App.Uninstall()
0 Comments