Hi,
Please try the below PowerShell script. I assume you have enabled WinRM on the remote computers.
$address = "xxx.xxx.xxx.xxx"
$file = "C:\temp\interfaces.csv"
Get-ADComputer -Filter * | ForEach-Object {
Invoke-Command -ComputerName $_.Name -ScriptBlock {Get-DnsClientServerAddress} | ForEach-Object {
if ($address -in $_.ServerAddresses) {
$_ | Select-Object InterfaceAlias,PSComputerName
}
}
} | Export-Csv -NoTypeInformation -Path $file
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.