Forum Discussion
JulianAF2380
Jul 19, 2023Brass Contributor
How deploy application using powershell script by intune ?
Hi community! i'm trying to replace our anti virus Sophos by Checkpoint using script powershell. The script works fine if i execute it with admin permission on the client but by Intune it's fail...
Jul 20, 2023
I did the same thing for a Customer of us, created a Win32 package with these 3 files (Install.cmd is empty because it was for uninstall only)
install.cmd
Uninstall.cmd
"C:\Program Files\Sophos\Sophos Endpoint Agent\uninstallcli.exe" /quiet
Detection.ps1
if (Test-Path 'C:\Program Files (x86)\HitmanPro.Alert\uninstall.exe') {
write-host Sophos present
exit 0
}
else {
write-host Sophos is not present
exit 1
}
Most important thing is to remove the protection of the Sophos clients first so that it can be uninstalled.
JulianAF2380
Jul 25, 2023Brass Contributor
Hi! I re installed the computer in English (it was in french) and now it's working. I need to make others tests on other computer in french to check if it was isolated problem.
- Jul 25, 2023Ok, let us know 🙂