Get Your Local IP Address

Get-NetIPAddress
Details
Get-NetIPAddress returns the all the local IP addresses of the machine it is run on.

Example
PS C:\> Get-NetIPAddress


IPAddress         : 10.10.1.10
InterfaceIndex    : 12
InterfaceAlias    : Ethernet
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Manual
SuffixOrigin      : Manual
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore