major4579 0 Posted ... Windows 10 Pro computer. I start the VPN with: "Eddie-UI.exe --path=home --batch --netlock --connect --netlock.allowed_ips=192.168.1.10" My computer is set to turn off in the early hours. When it does the netlock action is still active, the next day when I start my computer I have to start Eddie and click on "Deactivate Network Lock" and then I will have internet access. Is there a simple batch file command I can run before the computer shutsdown to Deactivate the Network Lock and cleanly exit Eddie? Sorry for the newbie questions. Thanks, Marc Quote Share this post Link to post
Staff 10700 Posted ... Hello! When Windows shuts down, it closes Eddie before Eddie can disconnect and remove its Network Lock rules. With Fast Startup enabled (the Windows 10 default), Shut down does not fully reset the system, so the leftover rules are still active when you power on the computer the next day. When Eddie exits normally, it disconnects and removes the Network Lock by itself, so the solution is to let Eddie exit before Windows shuts down. 1. Add --gui.exit_confirm=False to your launch command, so that Eddie does not ask for a confirmation when it is closed: Eddie-UI.exe --path=home --batch --netlock --connect --netlock.allowed_ips=192.168.1.10 --gui.exit_confirm=False 2. Replace your scheduled shutdown with a scheduled task (Task Scheduler) that runs this batch file: @echo off taskkill /IM Eddie-UI.exe set /a n=0 :wait timeout /t 5 /nobreak >nul tasklist /FI "IMAGENAME eq Eddie-UI.exe" | find /I "Eddie-UI.exe" >nul || goto off set /a n+=1 if %n% lss 12 goto wait :off shutdown /s /t 0 taskkill without /F asks Eddie to close as if you had chosen Exit: Eddie disconnects, removes the Network Lock and exits. The batch file waits up to one minute for Eddie to exit, then shuts the computer down. In the task properties, run it under your own account with "Run only when user is logged on" and "Run with highest privileges", so that taskkill can reach the Eddie window. Please let us know whether the Network Lock is gone the next morning. Kind regards Quote Share this post Link to post
major4579 0 Posted ... Thank you - that looks just like what I want. I've set it up but will not know until tomorrow. Quote Share this post Link to post