Commit 54d3f03a authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Better test on the two config file

parent ab14909f
If (!(Test-Path -LiteralPath ".\Custom-VarOverload.psm1")) {
Write-Output "You must have a Custom-VarOverload.psm1 configuration"
Write-Output "file in the current folder to define credentials for"
Write-Output "uninstalling Kaspersky Endpoint software."
If (!(Test-Path -LiteralPath ".\Custom-VarOverload.psm1") -And !(Test-Path -LiteralPath ".\Custom-VarAutodel.psm1")) {
Write-Output "You must have a Custom-VarOverload.psm1 configuration file"
Write-Output "(or Custom-VarAutodel.psm1) in the current folder to define"
Write-Output "credentials for uninstalling Kaspersky Endpoint software."
Exit
}
......
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