Sometimes while we do Exchange projects in big environments where there more than 10 or 15 servers we need to quickly get a particular server’s hostname or IP. I created a simple PowerShell script that does the work for you #Get all mailbox Exchange Servers IP address remotely #Import Exchange Management Shell if ran from PowerShell Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn # Find Mailbox Server Roles $Servers = Get-ExchangeServer | Where-Object {$_.Serverrole -eq “mailbox”} # Print Servername and IP foreach ($Server in $Servers) {Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName $Server | Select-Object -Property IPAddress,PsComputerName,Name} 
|