D
D
Dckto02019-03-26 17:15:02
PowerShell
Dckto0, 2019-03-26 17:15:02

How to search for an arbitrary string?

Using PowerShell, search for an arbitrary string in the DNS cache, if it is found, clear the cache.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Ratkin, 2019-03-26
@Hanharr

if(Get-DnsClientCache -Name "<string>")
{
    Clear-DnsClientCache
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question