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
ac22bcd2
Commit
ac22bcd2
authored
May 04, 2022
by
Gabriel Moreau
Browse files
Better comment
parent
496d93e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
dists/uninstall-kaspersky/set-password-encrypted.ps1
dists/uninstall-kaspersky/set-password-encrypted.ps1
+1
-1
dists/uninstall-kaspersky/uninstall-kaspersky.ps1
dists/uninstall-kaspersky/uninstall-kaspersky.ps1
+2
-0
No files found.
dists/uninstall-kaspersky/set-password-encrypted.ps1
View file @
ac22bcd2
$KeyFile
=
Read-Host
-Prompt
"Key File"
$KeyFile
=
Read-Host
-Prompt
"Key File
(please put .key extension)
"
$Password
=
Read-Host
-AsSecureString
-Prompt
"Password to secure"
$Key
=
New-Object
Byte
[]
32
# create key AES 256-bit key (32 bytes)
...
...
dists/uninstall-kaspersky/uninstall-kaspersky.ps1
View file @
ac22bcd2
# Test Custom Variables
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"
...
...
@@ -6,4 +7,5 @@ If (!(Test-Path -LiteralPath ".\Custom-VarOverload.psm1") -And !(Test-Path -Lite
Exit
}
# Launch SWMB
.
"
${Env:ProgramFiles}
\SWMB\swmb.ps1"
-exp
UninstallKasperskyEndpoint
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