Hi @Dinesh Vinay ,
What is the installation path for both client version? Maybe instead of registry you could detect based on .exe file location.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello All,
Hope you are doing good. We are having requirement to uninstall ScreenConnect Client software (Remote desktop application). Our requirement to uninstall the software from SCCM. We require the custom registry-based detection logic to trigger the uninstall of the application.
We are using this for PowerShell code, but it's doesn't help. The App Discovery.log showing the Application is detected and it's showing in Installed compliance state.
$Name = "ScreenConnect%"
$detection = @()
$detection = Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall* | Where-Object {($_.DisplayName -like "$Name*")}
if (!($detection)) {return $true}
Moreover, the application product code is not unique for all ScreenConnect software installed machines. And also, ARP Display Name also not unique. Below is the ARP display name on 2 clients.
Client 1 - ScreenConnect Client (8f53xxx)
Client 2 - ScreenConnect Client (3d3bxxx)
Much appreciate any assistance of detection logic to uninstall the application.
Hi @Dinesh Vinay ,
What is the installation path for both client version? Maybe instead of registry you could detect based on .exe file location.
Hi Rafal,
Thanks for your reply. There are some challenges on that. The installation directory folder is not unique on each machine.
For Ex. In Client 1 -> C:\Program Files (x86)\ScreenConnect Client (8f53xxx)
In other case Client 2 -> C:\Program Files (x86)\ScreenConnect Client (3d3bxxx)
ScreenConnect Client Installation directory folder in %Program Files (x86) are following along with %RAND% number.
Hi, @Dinesh Vinay
Thank you for posting in Microsoft Q&A forum.
There should be something wrong with your detection script, I test it, it always returns "True" whatever the DisplayName is exists or not.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Thanks Allen, Am not proficient in PowerShell.
It would be helpful if you share the reverse detection logic to uninstall the ScreenConnect software in all Pc's Much helpful if you share anything on that.