Disable 3CXDesktop Script

Status
Not open for further replies.

sfat3foldit

Platinum Partner
Advanced Certified
Joined
Aug 18, 2020
Messages
8
Reaction score
12
Hi all!

Here is the script I pushed to all our clients to disable the 3CXDesktop app quickly until 3CX figures out who left the root password on the usb key in Starbucks...LOL. I hope it helps!

if (Get-Process -Name "3CXDesktopApp" -ErrorAction SilentlyContinue) {
write-host "Found the process running, killing it!"
Stop-Process -Name "3CXDesktopApp" -Force
}

#This section will rename the 3CXDesktopApp.Exe and Update.exe to a different filename, so they won't get run automatically again.
$ListOfLocations = @(
"C:\Users\*\AppData\Local\Programs\3CXDesktopApp\3CXDesktopApp.exe",
"C:\Users\*\AppData\Local\Programs\3CXDesktopApp\Update.exe",
"C:\Program Files\3CXDesktopApp\3CXDesktopApp.exe",
"C:\Program Files\3CXDesktopApp\Update.exe"
)

foreach ($Location in $ListOfLocations){

$FoundInstances = Get-Item -Path $Location -ErrorAction SilentlyContinue

foreach ($FoundInstance in $FoundInstances){
write-host "Found 3CX Desktop App Files at '$FoundInstance', Renaming it..."
Rename-Item -Path $FoundInstance -NewName "$($FoundInstance.Name)_RENAMED"
}
}
 
We just used this successfully. Thank you!

Time for 3CX to own up, chime in, and be part of the solution!!!!
 
  • Like
Reactions: bradgarrison
Thank you, works very well !
 
Once we have run the above script on an affected PC, what are the recommended steps from there?
 
Once we have run the above script on an affected PC, what are the recommended steps from there?
Instruct your users who are dependant on the desktop application to use the web client in the interim and wait for an official response from 3CX.
 
Status
Not open for further replies.

Forum statistics

Threads
112,025
Messages
590,365
Members
164,976
Latest member
Roman Mazur