Commit 1ed532d1 authored by Olivier De Marchi's avatar Olivier De Marchi
Browse files

X =>x msiexec

parent f30a4f81
......@@ -107,7 +107,7 @@ Function TweakUninstallKasperskyEndpoint { # RESINFO
$KesAgent = Get-WmiObject win32_product | Where { $_.Name -like "*Agent*Kaspersky Security Center*" }
If ($KesAgent.IdentifyingNumber) {
Write-Output "Suppress Agent Kaspersky Security Center $($KesAgent.Version) with GUID => $($KesAgent.IdentifyingNumber)"
Start-Process "msiexec.exe" -ArgumentList "/X $($KesAgent.IdentifyingNumber) /qn" -Wait -NoNewWindow
Start-Process "msiexec.exe" -ArgumentList "/x $($KesAgent.IdentifyingNumber) /qn" -Wait -NoNewWindow
Else {
Write-Host "Kaspersky agent Security Center is 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