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
5bc5db83
Commit
5bc5db83
authored
May 10, 2022
by
Olivier De Marchi
Browse files
move kaspersky agent center uninstall function
parent
b853c785
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
Modules/SWMB/Experimental.psm1
Modules/SWMB/Experimental.psm1
+10
-8
No files found.
Modules/SWMB/Experimental.psm1
View file @
5bc5db83
...
...
@@ -97,18 +97,20 @@ Function TweakUninstallKasperskyEndpoint { # RESINFO
"/qn"
)
Start-Process
"msiexec.exe"
-ArgumentList
$MSIArguments
-Wait
-NoNewWindow
# Remove Kaspersky Agent, French 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 Endpoint is not installed on this computer"
}
# Remove Kaspersky Agent, French 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
$(
$KesAgent
.
Version
)
with GUID =>
$(
$KesAgent
.
IdentifyingNumber
)
"
Start-Process
"msiexec.exe"
-ArgumentList
"/X
$(
$KesAgent
.
IdentifyingNumber
)
/qn"
-Wait
-NoNewWindow
}
Else
{
Write-Host
"Kaspersky agent Security Center is 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