Commit b5d4873f authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Add log file

parent 56aa88b5
......@@ -108,6 +108,9 @@ Function TweakUninstallKasperskyEndpoint { # RESINFO
"/norestart"
"/qn"
)
If ($($Global:SWMB_Custom.KeslogFile)) {
$MSIEndpointArguments += "/l*vx `"$($Global:SWMB_Custom.KeslogFile)`""
}
Start-Process "msiexec.exe" -ArgumentList $MSIEndpointArguments -Wait -NoNewWindow
Write-Host "Uninstall finish"
} Else {
......@@ -137,6 +140,9 @@ Function TweakUninstallKasperskyEndpoint { # RESINFO
"KLUNINSTPASSWD=$AgentHexPassword"
"/qn"
)
If ($($Global:SWMB_Custom.KeslogFile)) {
$MSIAgentArguments += "/l*vx+ `"$($Global:SWMB_Custom.KeslogFile)`""
}
Start-Process "msiexec.exe" -ArgumentList $MSIAgentArguments -Wait -NoNewWindow
}
Else {
......
......@@ -73,18 +73,19 @@ You will need to configure/customize your SWMB installation
before you can uninstall Kaspersky Endpoint and the Network Agent.
This includes the creation of a parameter module
`Custom-VarOverload.psm1` which can be saved in the current folder
or in any other folder...
`Custom-VarOverload.psm1` (or `Custom-VarAutodel.psm1`)
which can be saved in the current folder or in any other folder...
```ps1
# Kaspersky Endpoint Security
$Global:SWMB_Custom.KesLogin = "KLAdmin"
# If clear password
$Global:SWMB_Custom.KesPassword = ""
$Global:SWMB_Custom.KesAgentPass = ""
# Log file if non empty
$Global:SWMB_Custom.KesLogFile = ""
# Or if encrypted blurred password
# Encrypted passwords if non empty
$Global:SWMB_Custom.KesKeyFile = ""
# Clear or encrypted blurred password
$Global:SWMB_Custom.KesPassword = ""
$Global:SWMB_Custom.KesAgentPass = ""
```
......
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