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 = @(