Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何显示计算机IPv4连接-PowerShell_Powershell_Networking - Fatal编程技术网

如何显示计算机IPv4连接-PowerShell

如何显示计算机IPv4连接-PowerShell,powershell,networking,Powershell,Networking,我正在尝试仅从此列表中获取我的IPv4地址。是否有一种方法可以显示从AddressFamily属性返回IPv4而不是IPv6值的对象 Get-NetIPAddress | Format-Table -Property IPAddress, InterfaceAlias, Type, AddressFamily 我想将此信息保存到PowerShell—我知道还有其他方法可以找到此信息 将-AddressFamily IPv4添加到Get-NetIPAddress cmdletRef:

我正在尝试仅从此列表中获取我的IPv4地址。是否有一种方法可以显示从AddressFamily属性返回IPv4而不是IPv6值的对象

Get-NetIPAddress | Format-Table -Property IPAddress, InterfaceAlias, Type, AddressFamily

我想将此信息保存到PowerShell—我知道还有其他方法可以找到此信息

-AddressFamily IPv4
添加到
Get-NetIPAddress cmdletRef: