
{"id":57,"date":"2025-07-23T11:26:09","date_gmt":"2025-07-23T09:26:09","guid":{"rendered":"https:\/\/stayno.com\/?p=57"},"modified":"2025-07-23T11:26:09","modified_gmt":"2025-07-23T09:26:09","slug":"windows-dynamic-dns-with-freedns-and-task-manager","status":"publish","type":"post","link":"https:\/\/stayno.com\/index.php\/2025\/07\/23\/windows-dynamic-dns-with-freedns-and-task-manager\/","title":{"rendered":"Windows dynamic dns with Freedns and task manager"},"content":{"rendered":"\n<p>Thanks to this blog post <a href=\"https:\/\/agurk.net\/update-freedns-with-powershell-and-task-scheduler\/\">https:\/\/agurk.net\/update-freedns-with-powershell-and-task-scheduler\/<\/a> for detailed information.<\/p>\n\n\n\n<p>In my experience there is a bit of a difference in the commands and code everything else is essentially the same.<br>Just an outline:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a log file to keep track of logs<\/li>\n\n\n\n<li>Create a PowerShell script with the following code<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># Change Path to desired log location and Uri to your Direct or Token URL from FreeDNS\n$LogPath = \"D:\\\\updateFreeDNS\\\\updateLog.log\"\n$web = Invoke-RestMethod -Uri \"https:\/\/freedns.afraid.org\/dynamic\/update.php?!!!DIRECTURLORTOKENFROMFREEDNS!!!\"\n\n# No need to change this\nAdd-Content -Path $LogPath -Value \"$(Get-Date) $web\"<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open Task Manager and &#8220;Create a new task&#8221;<\/li>\n\n\n\n<li>On Trigger tab create a schedule<\/li>\n\n\n\n<li>On actions tab under Program\/Scripts add<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Still on actions tab under add arguments add<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>-ExecutionPolicy Bypass -File \"D:\\\\updateFreeDNS\\\\updateDNS.ps1\"\n#Substitute the path and name of your poweshell script file<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to this blog post https:\/\/agurk.net\/update-freedns-with-powershell-and-task-scheduler\/ for detailed information. In my experience there is a bit of a difference in the commands and code everything else is essentially the same.Just an outline:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,20,27],"tags":[28,30,29,31,10],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-staynonotes","category-superuser","category-windows","tag-dns","tag-dynamic","tag-freedns","tag-task-manager","tag-windows"],"_links":{"self":[{"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":1,"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":58,"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions\/58"}],"wp:attachment":[{"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stayno.com\/index.php\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}