Uninstall application from user profile via live terminal

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Uninstall application from user profile via live terminal

L0 Member

Does anyone know how to uninstall an application from a users profile via live terminal on cortex XDR. The user has a windows 10 enterprise computer but its installed on their profile. I am trying to uninstall a software called "Screen Share" (publisher: Screen Leap). I tried the below 3 commands but it wont work. 

 

1)

Uninstall-Package -Name ‘ScreenShare’ -Force

 

2)

Get-WmiObject -Class Win32_Product -Filter "Name='ScreenShare'" | ForEach-Object { $_.Uninstall() }

 

3)

wmic product where name="ScreenShare" call uninstall /nointeractive

 

1 REPLY 1

L1 Bithead

@WaqasS wrote:

Does anyone know how to uninstall an application from a users profile via live terminal on cortex XDR. The user has a windows 10 enterprise computer but its installed on their profile. I am trying to uninstall a software called "Screen Share" (publisher: Screen Leap). I tried the below 3 commands but it wont work. Lowes Life

 

1)

Uninstall-Package -Name ‘ScreenShare’ -Force

 

2)

Get-WmiObject -Class Win32_Product -Filter "Name='ScreenShare'" | ForEach-Object { $_.Uninstall() }

 

3)

wmic product where name="ScreenShare" call uninstall /nointeractive

 


Hello,

Uninstalling software via the terminal can be tricky, especially if it’s installed on a user’s profile. Let’s troubleshoot this for you:

Check Permissions:
Ensure that you’re running the commands with administrative privileges.
Open the terminal as an administrator (right-click and choose “Run as administrator”).
Command Options:
The commands you’ve tried are valid, but let’s refine them:
For PowerShell

 

Uninstall-Package -Name 'ScreenShare' -Force

 

For WMI:

 

Get-WmiObject -Class Win32_Product -Filter "Name='ScreenShare'" | ForEach-Object { $_.Uninstall() }

 

For WMIC

 

wmic product where name="ScreenShare" call uninstall /nointeractive

 


Check Software Name:
Confirm that the software name is correct (case-sensitive).
Double-check the publisher name (Screen Leap).
Silent Uninstall:
Some applications require additional parameters for silent uninstallation.
Check if the software supports silent uninstall (e.g., /quiet, /uninstall, etc.).
Log Files:
Look for log files in the software installation directory or system logs.
They might provide clues about why the uninstallation failed.
Manual Removal:
If all else fails, consider manually removing the software:
Navigate to the user’s profile folder (e.g., C:\Users\Username).
Look for the software folder (e.g., ScreenShare).
Delete it manually.
Registry Cleanup:
Check the Windows Registry for any remnants of the software.
Be cautious when editing the registry; backup first.
Remember to document your steps and proceed carefully.

Hope this will help you.
Best regards,
florence023

  • 706 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!