From 166aabba5b0eb52080197a4409920be343603b57 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 23 Jun 2025 09:58:34 +0200 Subject: [PATCH] Updated clear-dns-cache.ps1 --- scripts/clear-dns-cache.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/clear-dns-cache.ps1 b/scripts/clear-dns-cache.ps1 index 253281f7..928971ee 100755 --- a/scripts/clear-dns-cache.ps1 +++ b/scripts/clear-dns-cache.ps1 @@ -2,10 +2,10 @@ .SYNOPSIS Clears the DNS cache .DESCRIPTION - This PowerShell script clears the DNS client cache of the local computer. + This PowerShell script empties the DNS client cache of the local computer. .EXAMPLE PS> ./clear-dns-cache.ps1 - ✅ Cleared DNS cache in 1s. + ✅ DNS cache cleared in 1s. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -18,9 +18,9 @@ try { Clear-DnsClientCache [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "✅ Cleared DNS cache in $($elapsed)s." + "✅ DNS cache cleared in $($elapsed)s." exit 0 # success } catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "⚠️ Error: $($Error[0])" exit 1 }