VPN

VPN

Optional boolean value that determines if package processing should be restricted to when the local system is or is not determined to have an active VPN connection. This can be helpful if you have a large package you may not want pulling over your corporate VPN or when you are hosting an internal repository that you need to ensure remote users will be able to access.

@{
    'citrix-workspace-NOVPN' = @{
        Name        = 'citrix-workspace'
        Ensure      = 'Present'
        AutoUpgrade = $true
        VPN         = $false
    }
    'internal-package'       = @{
        Name   = 'internal-package'
        Ensure = 'Present'
        VPN    = $true
    }
}
Get-NetAdapter | Where-Object { $_.InterfaceDescription -match 'pangp|cisco|juniper|vpn' -and $_.Status -eq 'Up' }

Last updated

Was this helpful?