Get-HostIp servername | clip
function Get-HostIp([string][parameter(mandatory=$true)]$HostName) { resolve-host $HostName | select -expandproperty addresslist -First 1 | select -ExpandProperty ipaddresstostring }
0 comments:
Post a Comment