Up 0 Down 0

Silent Uninstall SonicWall Netextender

$ProgressPreference = "SilentlyContinue"
$Path = "C:\Users\Public\Downloads"
$SevenZipPath = "C:\Program Files\7-Zip\7z.exe"
if (-not (Test-Path $SevenZipPath)) {
    $Link = "https://www.7-zip.org/a/7z2501-x64.exe"
    $File = "7z2501-x64.exe"
    Invoke-WebRequest -Uri $Link -OutFile "$Path\$File" -UseBasicParsing
    Start-Process -FilePath "$Path\$File" -ArgumentList "/S" -Wait
}
$Link = "https://software.sonicwall.com/Netextender/Netextender%20Cleaner%20Tool.zip"
$File = "Netextender%20Cleaner%20Tool.zip"
$Name = "NxCleaner"
Invoke-WebRequest -Uri $Link -OutFile "$Path\$File" -UseBasicParsing
Start-Process -FilePath $SevenZipPath -ArgumentList "x -y -o$Path $Path\$File" -Wait
Start-Process -FilePath $SevenZipPath -ArgumentList "x -y -o$Path $Path\$Name.7z" -Wait
Start-Process -FilePath "$Path\$Name.exe" -Wait