Copy and paste the autolink url from adguard device settings from dashboard to the .bat file in place of aguard_IP_connect_link and add the batch file to startup.
-
Go to Device Settings from Adguard dashboard.
-
Scroll down and copy the link mentioned below "You can also programmatically update your linked IP address by calling:" It should lool like this :
https://linkip.adguard-dns.com/linkip/\/<somerandom_alphanumeric_characterstring>
-
In autolink.bat, replace the aguard_IP_connect_link string with the above link
-
You can replace the browser name on the same line. Just go to the original install folder of the browser and look up what the .exe is called.
-
Search Task Scheduler in windows and open it.
-
Click on Task Scheduler Library and From Actions, choose Create Task
-
Give any relevant name for the task.
-
Select Run only when user is logged on.
-
Go to Triggers -> New, From "Begin the Task" drop down, select "At log on" and press OK
-
Go to Actions -> New, From Action select Start a program and browse autolink.bat file from browser button. Click OK
-
Click OK on the Create Task window.
-
Check if you see the new task in Task Scheduler Library. If you can, then its done. The sript will run after every login.
###Errors: If the bat file isn't working, it might be possible that there might be some errors dumped in the ip.txt file.
- in case of
The response content cannot be parsed because the Internet Explorer engine is not available, or ...
use after the urls that fetches the current IP -UseBasicParsing