- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-25-2024 07:55 AM
I have a logon script (PowerShell) that captures details and saves them to a file on a network share. This works for users on the network but those who are remotely working are using the GP VPN and the file is not getting saved. The problem seems to be the VPN is in a connected state when the user logs into the computer. However, as the login process completes GP VPN disconnects and spends around 10 - 20 seconds reconnecting again. During this reconnection period the logfile gets saved to the destination. Since the connection is no longer there - it's lost.
How can I detect if the connection is established?
01-29-2024 06:49 AM
hi,
Are you using pre-logon?
01-29-2024 07:10 AM
I read through this Remote Access VPN with Pre-Logon (paloaltonetworks.com) and based on its description I would say yes, pre-logon is in place.
01-31-2024 07:34 AM
perhaps it may assist if you ran the script via the post-logon option under local user...
Also... when using pre-logon, the user logon should just rename the established pre-logon tunnel by default, perhaps you need to see why this is not happening... it may be that the tunnel is not reachable when connected via GP, this will prevent the tunnel from being renamed and cause a GP refresh... which in effect is what you are seeing for 10-20 seconds after login.
01-31-2024 07:42 AM
This is a domain wide logon script that is assigned via the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" key. Not all computers are connecting remotely through the VPN.
02-01-2024 03:07 AM
would it be a bad thing to also have the script set for post-logon, also, try to find out why the gateway reconnects on user logon.
the default behaviour is for the pre-logon tunnel to remain connected...
can you resolve the gateway address internally, this may be causing the GP refresh issue...
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!