Sunday, August 18, 2013

Powershell Quick Tips: Get hostname from IP address

C:\>powershell
PS C:\>[System.Net.Dns]::gethostentry("8.8.8.8")

No comments:

Test Code

netsh advfirewall firewall add rule name = "RPC Endpoint Mapper" dir = in action = allow protocol = TCP localport = 135 ...