adamchilcott

splitTunnel.cmdlist

Apr 22nd, 2021 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #############################
  2. # Application-to-Split-Tunnel
  3. #############################
  4.  
  5. ## Diagnostics
  6. Get-VpnConnection
  7.  
  8. ## Select Existing VPN For Split-Tunnel
  9. Set-VpnConnection -Name "my.vpn.provider.com" -SplitTunneling $True
  10. Add-VpnConnectionTriggerApplication -Name "my.vpn.provider.com" –ApplicationID "C:\MyApplication.exe"
  11. Set-VpnConnection -Name "my.vpn.provider.com" -IdleDisconnectSeconds 3
  12.  
  13. ## Confirmation
  14. Get-VpnConnectionTrigger -ConnectionName my.vpn.provider.com
  15.  
  16. ## Removal
  17. Remove-VpnConnectionTriggerApplication -Name "my.vpn.provider.com" –ApplicationID "C:\MyApplication.exe"
  18. ## Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\
  19.  
  20. #############
  21. # START NOTES
  22. #############
  23.  
  24. ## Series of PowerShell Commands For Windows. NOT A WORKING SCRIPT.
  25. ## Takes a VPN Connection and Marks it for Split-Tunneling, Tunneling your Specified Application.
  26.  
  27. ###########
  28. # END NOTES
  29. ###########
Add Comment
Please, Sign In to add comment