- 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"
}
}
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"
}
}