Commit 9a39896d authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Absolute path, more unblock...

parent e143d3ae
......@@ -15,7 +15,8 @@ REM add rights
%pwrsh% Set-ExecutionPolicy RemoteSigned -Force -Scope LocalMachine
REM unblock
%pwrsh% "Unblock-File -Path .\uninstall-kaspersky.ps1"
%pwrsh% "Unblock-File -Path .\*.ps1"
%pwrsh% "Unblock-File -Path .\*.psm1"
REM execute
%pwrsh% -File ".\uninstall-kaspersky.ps1"
......
......@@ -4,13 +4,15 @@ If (!(Test-Path -LiteralPath ".\Custom-VarOverload.psm1") -And !(Test-Path -Lite
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."
Write-Output "You can use the script set-password-encrypted.ps1 to help"
Write-Output "you create this module."
Exit
}
# Import module
Import-Module SWMB.psm1
Import-Module Custom.psm1
Import-Module Experimental.psm1
Import-Module ".\SWMB.psm1"
Import-Module ".\Custom.psm1"
Import-Module ".\Experimental.psm1"
# Initialize
SWMB_Init
......
......@@ -4,6 +4,8 @@ If (!(Test-Path -LiteralPath ".\Custom-VarOverload.psm1") -And !(Test-Path -Lite
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."
Write-Output "You can use the script set-password-encrypted.ps1 to help"
Write-Output "you create this module."
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