we have a meraki client vpn, which has no client vpn software. we use windows 10 built in vpn. i used powershell script below (and a batch file) to auto connect the vpn.
is there way to add a condition in where the attempt to connect to vpn isnt made if the computer lan/wifi is in the office and already behind the meraki?
also, a way to hide the credentials in the script? below it lists in plain text.
3 lastly, notify user if the vpn is not connected?
When you crosspost the same question at the same time to different forums you should at least post links to the other forums along with your question to avoid people willing to you help making their work twice or more.
Please do not hijack other peoples threads. If you have a question about Powershell code you wrote yourself you should create a new question for yourself.