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

Rename object

parent 3502511a
......@@ -67,8 +67,8 @@ Function TweakViewTargetRelease { # RESINFO
################################################################
# Suppress Kaspersky Endpoint software
# Suppress
Function TweakRemoveKasperskyEndpoint { # RESINFO
# Uninstall
Function TweakUninstallKasperskyEndpoint { # RESINFO
Write-Output "Suppress software Kaspersky Endpoint protection..."
$Kes = Get-WmiObject win32_product | Where { $_.Name -like "*Kaspersky endpoint security*" }
......@@ -103,6 +103,14 @@ Function TweakRemoveKasperskyEndpoint { # RESINFO
}
}
# Install
#Function TweakInstallKasperskyEndpoint { # RESINFO
# Write-Output "Install software Kaspersky Endpoint protection..."
# Write-Output "Error: Empty function defined only for check"
# Write-Output "Error: use your deploiement software in order to install Kasperky Endpoint"
# Exit
#}
################################################################
###### Export Functions
......
......@@ -255,5 +255,5 @@ RemoveFaxPrinter # AddFaxPrinter
# DisablePublicProfile # EnablePublicProfile
# EnableClearPageFile # DisableClearPageFile # ViewClearPageFile
# RemoveKasperskyEndpoint
# UninstallKasperskyEndpoint
# SetTargetRelease # UnsetTargetRelease # ViewTargetRelease
......@@ -63,7 +63,7 @@ msg2 "Number of Set and Unset tweaks" \
msg2 "Number of Pin and Unpin tweaks" \
$(grep -hEi '^Function[[:space:]]Tweak(Pin)' ${all_module} | awk '{print $2}' | wc -l) \
$(grep -hEi '^Function[[:space:]]Tweak(Unpin)' ${all_module} | awk '{print $2}' | wc -l)
msg1 "Number of total tweaks GPO" \
$(grep -hEi '^Function Tweak(Enable|Disable|Show|Hide|Install|Uninstall|Add|Remove|Set|Unset|Pin|Unpin)' ${all_module} | wc -l)
......
......@@ -16,23 +16,23 @@ $Global:SWMB_Custom{'KesKeyFile'} = ""
You can choose to put the password to modify Kasperky in clear text
or to scramble it via a symmetric encryption process.
How to create a blurred password?
How to create a password encrypted so blurred ?
A small script is provided [blur-password.ps1](blur-password.ps1).
A small script is provided [set-password-encrypted.ps1](set-password-encrypted.ps1).
It asks you for a file name to store the encryption key and password.
The blurred word will then be displayed on the console.
The blurred encrypted word will then be displayed on the console.
You have to write these values in the `Custom-VarOverload.psm1` file.
Finally, the file containing the encryption key should be put next
to the file of this configuration file (in the same folder).
You can verify that this password is blurred by doing the reverse
operation via the [clear-password.ps1](clear-password.ps1) script.
You can verify that this password is encrypted by doing the reverse
operation via the [get-password-cleartext.ps1](get-password-cleartext.ps1) script.
Finally, regardless of the method chosen for the password,
the Kapersky uninstallation operation is launched
with the following command:
```ps1
"C:\Program Files\SWMB\swmb.ps" -exp RemoveKasperskyEndpoint
"C:\Program Files\SWMB\swmb.ps" -exp UninstallKasperskyEndpoint
```
......
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