question

CordyBiddle-4755 avatar image
0 Votes"
CordyBiddle-4755 asked RichMatheisen-8856 answered

How would you get one program to wait until another executes? The second program needs to be in a connected status

I need to get one program to wait until our VPN is connected before allowing this program to launch. It would need to wait after the connection status for a count of say 10 before launching to make sure that the handshake is fully connected. How would one go about doing this? (Program to wait is VMWARE Horizons and the VPN program is Big IP Edge Client).

windows-server-powershellwindows-10-networksmall-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

Use the Get-VPNConnection cmdlet using the name of your VPN. Check the property "ConnectionStatus" in the result.

If the VPN is one that's usable by everyone, add the "-AllUserConnection" switch to the cmdlet.

When you're satisfied the VPN is connected start the program that depends on the connection being available.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.