I know there’s an option in NordVPN to “Launch the app on Windows startup”, but actually all this does is add NordVPN as a startup app, so when you login it launches and connects.
I use NordVPN on my Windows Server 2022 Standard Edition with split tunnelling to enable VPN access for just one app. And should the server reboot after an update or just reboot unexpectedly, I need NordVPN to start up without me having to login to my server.
I’ve tried adding a scheduled task to start NordVPN.exe on startup with admin privileges whether the user is logged on or not, but Nord simply won’t launch unless there’s an active login session.
I’ve created a PowerShell script that launches on startup to make sure the Nord windows services start first, then wait a minute before running:
Start-Process -FilePath "<path-to-NordVPN.exe>" -ArgumentList "connect <destination-server>"
But that doesn’t work.
I’ve tried adding NordVPN.exe directly as a manual Windows Service using NSSM with admin logon privileges, then using PowerShell on startup to wait for “nordvpn-service”, and “NordUpdaterService” to start before manually starting the NSSM NordVPN service, and that doesn’t work either… or rather all of this DOES work, but only if I run the script(s) manually when I’m logged into my server.
It seems NordVPN simply refuses to start unless there’s an active login session. I’ve even tried editing the “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” registry to enable “AutoAdminLogon”, but with no luck.
I could configure NordVPN through my servers router, but I don’t have access, and that wouldn’t allow me to use split tunnelling.
Right now I have a temporary solution which is a PowerShell script that runs on startup and sends a secure API request to my home server (just an old laptop I keep turned on, mainly for network file sharing) which triggers an Admin RDP session back to my remote server, then disconnects after 2 minutes. This works but isn’t a permanent solution.
Does anyone know a way or have suggestions on how to start NordVPN after a reboot without having to logon in a windows server environment?