From 0127474dbef8756ad84d07fe5adc79284e439051 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Mon, 1 Jul 2024 11:24:24 -0400 Subject: [PATCH] try getting the date again --- Fix-UpdateLocalHosts.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fix-UpdateLocalHosts.ps1 b/Fix-UpdateLocalHosts.ps1 index d9033c1..c06eb02 100644 --- a/Fix-UpdateLocalHosts.ps1 +++ b/Fix-UpdateLocalHosts.ps1 @@ -4,12 +4,13 @@ If ( !(Test-Path $DNSHelper) ) { Download-File -URL $DNSHelperURL -File $DNSHelper } $RefreshScript = $Global:ToolsDirectory + '\refresh-local-hosts.bat' +$todaysDate = Get-LongDate $RefreshScriptHeader = @" @echo off REM Refresh IP to name mappings in local hosts file REM This script was created by an automatic process and should not be edited manually REM Author: David Yoder, Emberkom LLC -REM Updated: ${$(Get-LongDate)}`n +REM Updated: ${todaysDate}`n "@ $Resolvers = @(