Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
resinfo-gt
swmb
resinfo-swmb
Commits
c51bc272
Commit
c51bc272
authored
May 05, 2022
by
Olivier De Marchi
Browse files
remove generic Network agent Kaspersky
parent
f4c23f20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Modules/SWMB/Experimental.psm1
Modules/SWMB/Experimental.psm1
+7
-2
No files found.
Modules/SWMB/Experimental.psm1
View file @
c51bc272
...
@@ -98,8 +98,13 @@ Function TweakUninstallKasperskyEndpoint { # RESINFO
...
@@ -98,8 +98,13 @@ Function TweakUninstallKasperskyEndpoint { # RESINFO
)
)
Start-Process
"msiexec.exe"
-ArgumentList
$MSIArguments
-Wait
-NoNewWindow
Start-Process
"msiexec.exe"
-ArgumentList
$MSIArguments
-Wait
-NoNewWindow
# Remove Kaspersky Agent {2924BEDA-E0D7-4DAF-A224-50D2E0B12F5B}
# Remove Kaspersky Agent, Franch Guid = {2924BEDA-E0D7-4DAF-A224-50D2E0B12F5B}
Start-Process
"msiexec.exe"
-ArgumentList
"/X {2924BEDA-E0D7-4DAF-A224-50D2E0B12F5B} /qn"
-Wait
-NoNewWindow
$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"
Write-Host
"Uninstall finish"
}
Else
{
}
Else
{
Write-Host
"Kaspersky not installed on this computer"
Write-Host
"Kaspersky not installed on this computer"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment