Get Hostname from IP Address using PowerShell

Create a text file containing IP Address(c:\IP_Address.txt)PS C:\Powershell> Get-Content C:\IP_Address.txt | ForEach-Object {([system.net.dns]::GetHostByAddress($_)).hostname >> c:\hostname.txt}The hostnames for the IP Address will be written on to C:\hostname.txtYou can also re

 
 
 
 
 
(5)
Add to favorites
1/9/2013
E-mail Twitter del.icio.us Digg Facebook