How to use the above files?
Step 1: Copy files updateInterfaceMetric.ps1, updateDns.ps1, autodns.sh to your Windows path %HOMEPATH%\WSL2\scripts, if not exists, create this folder.
Step 2: Win+R Run taskschd.msc will open "Task Schedulder" application, import two tasks with files UpdateInterfaceMetric.xml, updateDns.xml one by one.
Very handy! Thank you for sharing!!
S-1-5-21-1757981266-725345543-1404487317-531068 - requires update for specific user
$distro="Ubuntu"Ubuntu-18.04 actually