Commit c51bc272 authored by Olivier De Marchi's avatar Olivier De Marchi
Browse files

remove generic Network agent Kaspersky

parent f4c23f20
......@@ -98,8 +98,13 @@ Function TweakUninstallKasperskyEndpoint { # RESINFO
Start-Process "msiexec.exe" -ArgumentList $MSIArguments -Wait -NoNewWindow
# Remove Kaspersky Agent {2924BEDA-E0D7-4DAF-A224-50D2E0B12F5B}
Start-Process "msiexec.exe" -ArgumentList "/X {2924BEDA-E0D7-4DAF-A224-50D2E0B12F5B} /qn" -Wait -NoNewWindow
# Remove Kaspersky Agent, Franch Guid = {2924BEDA-E0D7-4DAF-A224-50D2E0B12F5B}
$KesAgent = Get-WmiObject win32_product | Where { $_.Name -like "*Agent*Kaspersky Security Center*" }
If ($KesAgent.IdentifyingNumber) {
Write-Output "Suppress Agent Kaspersky Security Center..."
Start-Process "msiexec.exe" -ArgumentList "/X $($KesAgent.IdentifyingNumber) /qn" -Wait -NoNewWindow
Write-Host "Uninstall finish"
} Else {
Write-Host "Kaspersky not installed on this computer"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment