32 lines
715 B
PowerShell
32 lines
715 B
PowerShell
# Script to install AnyConnect VPN Client
|
|
# Technolog Networks - 2025-10-13
|
|
# iRaven
|
|
|
|
param(
|
|
[switch] $SBL
|
|
)
|
|
|
|
Start-Transcript -Path "c:\irnh\Install-AnyConnect.log" -Append
|
|
|
|
Function CheckInstall {
|
|
if (Get-Package -Name "Cisco*AnyConnect*") {
|
|
return $true
|
|
} else {
|
|
return $false
|
|
}
|
|
}
|
|
|
|
if ((CheckInstall) -eq $false) {
|
|
try {
|
|
Write-Host -ForegroundColor Yellow "Installing AnyConnect Core"
|
|
msiexec /i ".\CiscoAnyConnect.msi" /quiet
|
|
if ($SBL) {
|
|
Write-Host -ForegroundColor Yellow "Installing AnyConnect SBL"
|
|
msiexec /i ".\CiscoAnyConnectSBL.msi" /quiet
|
|
}
|
|
} catch {
|
|
write-host "it no worky"
|
|
}
|
|
}
|
|
|
|
Stop-Transcript |