AnyConnect - norestart on SBL and Core

This commit is contained in:
2025-10-15 00:19:26 -05:00
parent 1ee5438c92
commit b7a1234b7b

View File

@@ -2,6 +2,13 @@
# Technolog Networks - 2025-10-13 # Technolog Networks - 2025-10-13
# iRaven # iRaven
<#
.SYNOPSIS
Installs Cisco AnyConnect/Secure VPN Client
.PARAMETER SBL
Boolean to install Start Before Logon module.
#>
param( param(
[switch] $SBL [switch] $SBL
) )
@@ -19,10 +26,10 @@ Function CheckInstall {
if ((CheckInstall) -eq $false) { if ((CheckInstall) -eq $false) {
try { try {
Write-Host -ForegroundColor Yellow "Installing AnyConnect Core" Write-Host -ForegroundColor Yellow "Installing AnyConnect Core"
msiexec /i ".\CiscoAnyConnect.msi" /quiet msiexec /i ".\CiscoAnyConnect.msi" /quiet /norestart
if ($SBL) { if ($SBL) {
Write-Host -ForegroundColor Yellow "Installing AnyConnect SBL" Write-Host -ForegroundColor Yellow "Installing AnyConnect SBL"
msiexec /i ".\CiscoAnyConnectSBL.msi" /quiet msiexec /i ".\CiscoAnyConnectSBL.msi" /quiet /norestart
} }
} catch { } catch {
write-host "it no worky" write-host "it no worky"