Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #############################
- # Application-to-Split-Tunnel
- #############################
- ## Diagnostics
- Get-VpnConnection
- ## Select Existing VPN For Split-Tunnel
- Set-VpnConnection -Name "my.vpn.provider.com" -SplitTunneling $True
- Add-VpnConnectionTriggerApplication -Name "my.vpn.provider.com" –ApplicationID "C:\MyApplication.exe"
- Set-VpnConnection -Name "my.vpn.provider.com" -IdleDisconnectSeconds 3
- ## Confirmation
- Get-VpnConnectionTrigger -ConnectionName my.vpn.provider.com
- ## Removal
- Remove-VpnConnectionTriggerApplication -Name "my.vpn.provider.com" –ApplicationID "C:\MyApplication.exe"
- ## Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\
- #############
- # START NOTES
- #############
- ## Series of PowerShell Commands For Windows. NOT A WORKING SCRIPT.
- ## Takes a VPN Connection and Marks it for Split-Tunneling, Tunneling your Specified Application.
- ###########
- # END NOTES
- ###########
Add Comment
Please, Sign In to add comment