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.
When defining this value as $true, machines without a VPN adapter will never process a package as it will always evaluate $false for determining if any action should take place. This may change in down the line.
@{
'citrix-workspace-NOVPN' = @{
Name = 'citrix-workspace'
Ensure = 'Present'
AutoUpgrade = $true
VPN = $false
}
'internal-package' = @{
Name = 'internal-package'
Ensure = 'Present'
VPN = $true
}
}
The function behind this is rather simple yet effective. Future enhancements may be needed to cover a broader range of adapter types.
Get-NetAdapter | Where-Object { $_.InterfaceDescription -match 'pangp|cisco|juniper|vpn' -and $_.Status -eq 'Up' }
Last updated
Was this helpful?