Scenario: You want to flush DNS client cache on multiple remote computers.
Script:
$1 = get-exchangeserver Ex*
$1 | %{Invoke-Command {Clear-DnsClientCache} -ComputerName $_.name}
Scenario: You want to flush DNS client cache on multiple remote computers.
Script:
$1 = get-exchangeserver Ex*
$1 | %{Invoke-Command {Clear-DnsClientCache} -ComputerName $_.name}