PSNettools是一个跨平台PowerShell模块,用于测试Windows,Linux和Mac上的某些网络功能。

由Joel Sallow生成的图像。
从Psgallery安装最新版本:
Install-Module - Name PsNetTools - Repository PSGallery列出所有导出程序:
Get-Command - Module PsNetTools
CommandType Name Version Source
----------- ---- ------- ------
Function Add-PsNetDnsSearchSuffix 0.7.7 PsNetTools
Function Add-PsNetHostsEntry 0.7.7 PsNetTools
Function Clear-PsNetDnsSearchSuffix 0.7.7 PsNetTools
Function Get-PsNetAdapterConfiguration 0.7.7 PsNetTools
Function Get-PsNetAdapters 0.7.7 PsNetTools
Function Get-PsNetDnsSearchSuffix 0.7.7 PsNetTools
Function Get-PsNetHostsTable 0.7.7 PsNetTools
Function Get-PsNetRoutingTable 0.7.7 PsNetTools
Function Remove-PsNetDnsSearchSuffix 0.7.7 PsNetTools
Function Remove-PsNetHostsEntry 0.7.7 PsNetTools
Function Start-PsNetPortListener 0.7.7 PsNetTools
Function Test-PsNetDig 0.7.7 PsNetTools
Function Test-PsNetPing 0.7.7 PsNetTools
Function Test-PsNetTping 0.7.7 PsNetTools
Function Test-PsNetTracert 0.7.7 PsNetTools
Function Test-PsNetUping 0.7.7 PsNetTools
Function Test-PsNetWping 0.7.7 PsNetTools[顶部]
将主机名解析到IP地址或主机名的IP地址。
Test-PsNetDig [ - Destination ] < String[] > [ < CommonParameters > ]示例1:
Test-PsNetDig - Destination sbb.ch
Succeeded : True
InputString : sbb.ch
Destination : sbb.ch
IpV4Address : 194.150 . 245.142
IpV6Address : 2a00:4bc0:ffff:ffff::c296:f58e
TimeMs : 3示例2:
Test-PsNetDig - Destination sbb.ch , google.com | Format-Table
Succeeded InputString Destination IpV4Address IpV6Address TimeMs
--------- ----------- ----------- ----------- ----------- ------
True sbb.ch sbb.ch 194.150 . 245.142 2a00:4bc0:ffff:ffff::c296:f58e 4
True google.com google.com 172.217 . 168.14 2a00: 1450 :400a: 802 :: 200e 3示例3:
' sbb.ch ' , ' google.com ' | Test-PsNetDig | Format-Table
Succeeded InputString Destination IpV4Address IpV6Address TimeMs
--------- ----------- ----------- ----------- ----------- ------
True sbb.ch sbb.ch 194.150 . 245.142 2a00:4bc0:ffff:ffff::c296:f58e 4
True google.com google.com 216.58 . 215.238 2a00: 1450 :400a: 801 :: 200e 26[顶部]
尝试将ICMP回声消息发送到远程计算机,并从远程计算机接收相应的ICMP回声回复消息。
Test-PsNetPing [ - Destination ] < String[] > [[ - try ] < Int32 > ] [ < CommonParameters > ]示例1:
Test-PsNetPing - Destination sbb.ch
IcmpSucceeded : True
IPAddress : 2a00:4bc0:ffff:ffff::c296:f58e
BytesSend : 32
BytesReceived : 0
TimeStamp : 2019 - 05 - 26 09 : 34 : 48.388
Destination : sbb.ch
StatusDescription : ICMP Success
MinTimeout : 0
MaxTimeout : 1000
TimeMs : 19示例2:
Test-PsNetPing - Destination sbb.ch - try 5
2019 - 05 - 26 09 : 37 : 14.577 ICMP ping sbb.ch , IPAddress: 2a00:4bc0:ffff:ffff::c296:f58e , time: 19 , send: 32 , received: 32 , ICMP Success
2019 - 05 - 26 09 : 37 : 14.577 ICMP ping sbb.ch , IPAddress: 2a00:4bc0:ffff:ffff::c296:f58e , time: 19 , send: 32 , received: 32 , ICMP Success
2019 - 05 - 26 09 : 37 : 14.577 ICMP ping sbb.ch , IPAddress: 2a00:4bc0:ffff:ffff::c296:f58e , time: 19 , send: 32 , received: 32 , ICMP Success
2019 - 05 - 26 09 : 37 : 14.577 ICMP ping sbb.ch , IPAddress: 2a00:4bc0:ffff:ffff::c296:f58e , time: 19 , send: 32 , received: 32 , ICMP Success
2019 - 05 - 26 09 : 37 : 14.577 ICMP ping sbb.ch , IPAddress: 2a00:4bc0:ffff:ffff::c296:f58e , time: 19 , send: 32 , received: 32 , ICMP Success示例3:
Test-PsNetPing - Destination sbb.ch , microsoft.com , google.com | Format-Table
IcmpSucceeded IPAddress BytesSend BytesReceived Destination StatusDescription MinTimeout MaxTimeout TimeMs
------------- --------- --------- ------------- ----------- ----------------- ---------- ---------- ------
True 2a00:4bc0:ffff:ffff::c296:f58e 32 0 sbb.ch ICMP Success 0 1000 18
False 0.0 . 0.0 32 0 microsoft.com ICMP TimedOut 0 1000 0
True 2a00: 1450 :400a: 802 :: 200e 32 0 google.com ICMP Success 0 1000 18示例4:
Test-PsNetPing - Destination sbb.ch , microsoft.com , google.com - try 2
2019 - 05 - 26 09 : 41 : 06.319 ICMP ping sbb.ch , IPAddress: 2a00:4bc0:ffff:ffff::c296:f58e , time: 23 , send: 32 , received: 32 , ICMP Success2019 - 05 - 26 09 : 41 : 07.350 ICMP ping sbb.ch , IPAddress: 2a00:4bc0:ffff:ffff::c296:f58e , time: 22 , send: 32 , received: 32 , ICMP Success
2019 - 05 - 26 09 : 41 : 09.056 ICMP ping microsoft.com , IPAddress: 0.0 . 0.0 , time: 0 , send: 32 , received: 0 , ICMP TimedOut2019 - 05 - 26 09 : 41 : 11.056 ICMP ping microsoft.com , IPAddress: 0.0 . 0.0 , time: 0 , send: 32 , received: 0 , ICMP TimedOut
2019 - 05 - 26 09 : 41 : 12.084 ICMP ping google.com , IPAddress: 2a00: 1450 :400a: 800 :: 200e , time: 19 , send: 32 , received: 32 , ICMP Success
2019 - 05 - 26 09 : 41 : 13.110 ICMP ping google.com , IPAddress: 2a00: 1450 :400a: 800 :: 200e , time: 19 , send: 32 , received: 32 , ICMP Success[顶部]
测试连接到指定的TCP端口上的端点。
就像CMDLET测试网络连接,但具有在MS中指定超时的能力。
Test-PsNetTping - Destination < String[] > [ - CommonTcpPort ] < String > [ - MinTimeout < Int32 > ] [ - MaxTimeout < Int32 > ] Test-PsNetTping - Destination < String[] > - TcpPort < Int32[] > [ - MinTimeout < Int32 > ] [ - MaxTimeout < Int32 > ]示例1:
Test-PsNetTping - Destination sbb.ch - TcpPort 443 - MaxTimeout 100
TcpSucceeded : True
TcpPort : 443
TimeStamp : 2019 - 05 - 26 09 : 41 : 44.322
Destination : sbb.ch
StatusDescription : TCP Test success
MinTimeout : 0
MaxTimeout : 100
TimeMs : 8示例2:
Test-PsNetTping - Destination sbb.ch - CommonTcpPort HTTPS - MaxTimeout 100
TcpSucceeded : True
TcpPort : 443
TimeStamp : 2019 - 05 - 26 09 : 41 : 44.322
Destination : sbb.ch
StatusDescription : TCP Test success
MinTimeout : 0
MaxTimeout : 100
TimeMs : 14示例3:
Test-PsNetTping - Destination sbb.ch , google.com - TcpPort 443 - MaxTimeout 100 | Format-Table
TcpSucceeded TcpPort Destination StatusDescription MinTimeout MaxTimeout TimeMs
------------ ------- ----------- ----------------- ---------- ---------- ------
True 443 sbb.ch TCP Test success 0 100 1
True 443 google.com TCP Test success 0 100 1示例4:
Test-PsNetTping - Destination sbb.ch , google.com - TcpPort 80 , 443 - MaxTimeout 100 | Format-Table
TcpSucceeded TcpPort Destination StatusDescription MinTimeout MaxTimeout TimeMs
------------ ------- ----------- ----------------- ---------- ---------- ------
True 80 sbb.ch TCP Test success 0 100 5
True 443 sbb.ch TCP Test success 0 100 3
True 80 google.com TCP Test success 0 100 9
True 443 google.com TCP Test success 0 100 2[顶部]
测试跟踪路线到达目的地
Test-PsNetTracert [ - Destination ] < String[] > [[ - MaxHops ] < Int32 > ] [[ - MaxTimeout ] < Int32 > ] [ - Show ]示例1:
Test-PsNetTracert - Destination ' www.microsoft.com ' | Format-Table - AutoSize
Hops Time RTT Send Received Destination Hostname IPAddress Status Message
---- ---- --- ---- -------- ----------- -------- --------- ------ -------
1 24 0 32 0 www.microsoft.com * * TtlExpired Go to next address
2 33 0 32 0 www.microsoft.com ae60 - 60. ipc - lss690 - m - pe - 48. bluewin.ch 2001 :4d98:bffd: 1e :: 2 TtlExpired Go to next address
3 18 0 32 0 www.microsoft.com ae60 - 60. ipc - lss690 - m - pe - 48. bluewin.ch 2001 :4d98:bffd: 1e :: 2 TtlExpired Go to next address
4 21 0 32 0 www.microsoft.com be11 - v6.i68geb - 025. bb.ip - plus.bluewin.ch 2001 :4d98:bffd:1b:: 3 TtlExpired Go to next address
5 17 0 32 0 www.microsoft.com lss - 005 - lo0 - 0. ip6.ip - plus.net 2001 : 918 : 100 :f:: 1 TtlExpired Go to next address
6 18 0 32 0 www.microsoft.com lss - 070 - loo6.ip6.ip - plus.net 2001 : 918 : 100 : 2e :: 1 TtlExpired Go to next address
7 18 14 32 32 www.microsoft.com Could not resolve 2001 : 918 :ffc8:fe87:: 356e Success Trace route completed示例2:
Test-PsNetTracert - Destination ' www.google.com ' - MaxHops 5 - MaxTimeout 1000 | Format-Table - AutoSize
Hops Time RTT Send Received Destination Hostname IPAddress Status Message
---- ---- --- ---- -------- ----------- -------- --------- ------ -------
1 24 0 32 0 www.google.com * * TtlExpired Go to next address
2 16 0 32 0 www.google.com ae60 - 60. ipc - lss690 - m - pe - 48. bluewin.ch 2001 :4d98:bffd: 1e :: 2 TtlExpired Go to next address
3 15 0 32 0 www.google.com ae60 - 60. ipc - lss690 - m - pe - 48. bluewin.ch 2001 :4d98:bffd: 1e :: 2 TtlExpired Go to next address
4 34 0 32 0 www.google.com be11 - v6.i68geb - 025. bb.ip - plus.bluewin.ch 2001 :4d98:bffd:1b:: 3 TtlExpired Go to next address
5 19 0 32 0 www.google.com zhb - 005 - loo646.ip6.ip - plus.net 2001 : 918 : 100 : 646 :: 130 TtlExpired Go to next address示例3:
Test-PsNetTracert - Destination ' www.google.com ' - MaxHops 15 - MaxTimeout 1000 - Show
Trace route www.google.com over 15 Hops:
Hops , RTT , Send , Received , Destination , Hostname , IPAddress , Status , Messages
2 , 0 , 32 , 0 , www.google.com , ae60 - 60. ipc - lss690 - m - pe - 48. bluewin.ch , 2001 :4d98:bffd: 1e :: 2 , TtlExpired , Go to next address
3 , 0 , 32 , 0 , www.google.com , ae60 - 60. ipc - lss690 - m - pe - 48. bluewin.ch , 2001 :4d98:bffd: 1e :: 2 , TtlExpired , Go to next address
4 , 0 , 32 , 0 , www.google.com , be11 - v6.i68geb - 025. bb.ip - plus.bluewin.ch , 2001 :4d98:bffd:1b:: 3 , TtlExpired , Go to next address
5 , 0 , 32 , 0 , www.google.com , zhb - 005 - loo646.ip6.ip - plus.net , 2001 : 918 : 100 : 646 :: 130 , TtlExpired , Go to next address
6 , 0 , 32 , 0 , www.google.com , Could not resolve , 2001 : 4860 : 1 : 1 ::c5a , TtlExpired , Go to next address
7 , 0 , 32 , 0 , www.google.com , Could not resolve , 2001 : 4860 : 0 : 9f :: 1 , TtlExpired , Go to next address
8 , 0 , 32 , 0 , www.google.com , Could not resolve , 2001 : 4860 : 0 : 1 :: 156d , TtlExpired , Go to next address
9 , 18 , 32 , 32 , www.google.com , zrh04s14 - in - x04.1e100.net , 2a00: 1450 :400a: 802 :: 2004 , Success , Trace route completed[顶部]
测试连接到指定的UDP端口上的端点。
就像CMDLET测试网络连接一样,但是能够在MS中指定超时并查询UDP。
Test-PsNetUping - Destination < String[] > - UdpPort < Int32[] > [ - MinTimeout < Int32 > ] [ - MaxTimeout < Int32 > ]示例1:
Test-PsNetUping - Destination sbb.ch - UdpPort 53
UdpSucceeded : False
UdpPort : 53
TimeStamp : 2019 - 05 - 26 09 : 41 : 44.322
Destination : sbb.ch
StatusDescription : " A connection attempt failed because the connected party did not properly respond after a period
of time, or established connection failed because connected host has failed to respond "
MinTimeout : 0
MaxTimeout : 1000
TimeMs : 1000示例2:
Test-PsNetUping - Destination sbb.ch , google.com - UdpPort 53 | Format-Table
Succeeded TargetName UdpPort UdpSucceeded Duration MinTimeout MaxTimeout
--------- ---------- ------- ------------ -------- ---------- ----------
True sbb.ch 53 False 1022ms 0ms 1000ms
True google.com 53 False 1020ms 0ms 1000ms示例3:
Test-PsNetUping - Destination sbb.ch , google.com - UdpPort 53 , 139 | Format-Table
Succeeded TargetName UdpPort UdpSucceeded Duration MinTimeout MaxTimeout
--------- ---------- ------- ------------ -------- ---------- ----------
True sbb.ch 53 False 1160ms 0ms 1000ms
True sbb.ch 139 False 1016ms 0ms 1000ms
True google.com 53 False 1104ms 0ms 1000ms
True google.com 139 False 1025ms 0ms 1000ms[顶部]
就像CMDLET调用了Webrequest,但具有使用PowerShell 5.1指定“ Noproxy”的能力。
Test-PsNetWping [ - Destination ] < String[] > [[ - MinTimeout ] < Int32 > ] [[ - MaxTimeout ] < Int32 > ] [ - NoProxy ]示例1:
Test-PsNetWping - Destination ' https://sbb.ch '
HttpSucceeded : True
ResponsedUrl : https: // www.sbb.ch / de /
NoProxy : False
TimeStamp : 2019 - 05 - 26 09 : 43 : 20.599
Destination : https: // sbb.ch
StatusDescription : OK
MinTimeout : 0
MaxTimeout : 1000
TimeMs : 331示例2:
Test-PsNetWping - Destination https: // sbb.ch , google.com | Format-Table
HttpSucceeded ResponsedUrl NoProxy Destination StatusDescription MinTimeout MaxTimeout TimeMs
------------- ------------ ------- ----------- ----------------- ---------- ---------- ------
True https: // www.sbb.ch / de / False https: // sbb.ch OK 0 1000 150
True http: // www.google.com / False http: // google.com OK 0 1000 239示例3:
Test-PsNetWping - Destination ' https://sbb.ch ' , ' https://google.com ' - MaxTimeout 1000 - NoProxy | Format-Table
HttpSucceeded ResponsedUrl NoProxy Destination StatusDescription MinTimeout MaxTimeout TimeMs
------------- ------------ ------- ----------- ----------------- ---------- ---------- ------
True https: // www.sbb.ch / de / True https: // sbb.ch OK 0 1000 157
True https: // www.google.com / True https: // google.com OK 0 1000 307示例4:
' https://sbb.ch ' , ' google.com ' | Test-PsNetWping | Format-Table
HttpSucceeded ResponsedUrl NoProxy Destination StatusDescription MinTimeout MaxTimeout TimeMs
------------- ------------ ------- ----------- ----------------- ---------- ---------- ------
True https: // www.sbb.ch / de / True https: // sbb.ch OK 0 1000 157
True https: // www.google.com / True https: // google.com OK 0 1000 307[顶部]
列出所有网络适配器。
Get-PsNetAdapters | Where-Object Index -eq 11
Succeeded : True
Index : 25
Name : vEthernet (Internale HyperV)
Description : Hyper - V Virtual Ethernet Adapter
NetworkInterfaceType : Ethernet
OperationalStatus : Up
PhysicalAddres : 02 : 38 :7A:1A: 03 : 0E
IpVersion : IPv4 IPv6
IsAPIPAEnabled : True
IpV4Addresses : { 169.254 . 68.121 }
IpV6Addresses : {}[顶部]
获取PSNETADAPTERCONFIGURATION-获取所有适配器的网络接口配置。
Get-PsNetAdapterConfiguration | Where-Object Index -eq 11
Succeeded : True
Index : 11
Id : { < GUID > }
Name : Wi - Fi or Ethernet or Wwanpp or Wireless80211
Description : Intel(R) Dual Band Wireless - AC 8265
NetworkInterfaceType : Wireless80211
OperationalStatus : Up or Down
Speed : 866700000
IsReceiveOnly : False or True
SupportsMulticast : True or False
IpVersion : {IPv4 , IPv6}
IpV4Addresses : { < IP Address V 4> }
IpV6Addresses : { < IP Address V 6> }
PhysicalAddres : MAC Address
IsDnsEnabled : False or True
IsDynamicDnsEnabled : True or False
DnsSuffix : < DNS Suffix >
DnsAddresses : { < IP Address V 4> }
Mtu : False or True
IsForwardingEnabled : True or False
IsAPIPAEnabled : False or True
IsAPIPAActive : True or False
IsDhcpEnabled : True or False
DhcpServerAddresses : { < IP Address V 4> }
UsesWins : False or True
WinsServersAddresses : { < IP Address V 4> }
GatewayIpV4Addresses : { < IP Address V 4> }
GatewayIpV6Addresses : { < IP Address V 6> }[顶部]
get -psnetroutingtable-获取路由表格式将路由表格式为对象。
get -psnetroutingtable -ipversion ipv4或ipv6
Get-PsNetRoutingTable - IpVersion IPv4 | Format-Table
Succeeded AddressFamily Destination Netmask Gateway Interface Metric
--------- ------------- ----------- ------- ------- --------- ------
True IPv4 0.0 . 0.0 0.0 . 0.0 10.29 . 191.1 10.29 . 191. zzz 45
True IPv4 10.29 . 191.0 255.255 . 255.0 On - link 10.29 . 191. zzz 301
True IPv4 10.29 . 191. zzz 255.255 . 255.255 On - link 10.29 . 191. zzz 301
True IPv4 10.29 . 191. zzz 255.255 . 255.255 On - link 10.29 . 191. zzz 301
True IPv4 127.0 . 0.0 255.0 . 0.0 On - link 127.0 . 0.1 331
True IPv4 127.0 . 0.1 255.255 . 255.255 On - link 127.0 . 0.1 331
True IPv4 127.255 . 255.255 255.255 . 255.255 On - link 127.0 . 0.1 331
True IPv4 224.0 . 0.0 240.0 . 0.0 On - link 127.0 . 0.1 331
True IPv4 224.0 . 0.0 240.0 . 0.0 On - link 10.29 . 191. zzz 301
True IPv4 255.255 . 255.255 255.255 . 255.255 On - link 127.0 . 0.1 331
True IPv4 255.255 . 255.255 255.255 . 255.255 On - link 10.29 . 191. zzz 301[顶部]
get -psneThoststable-获取hostsfile格式的hostsfile到对象。
获取psnethoststast
Get-PsNetHostsTable
Succeeded IpAddress ComputerName FullyQualifiedName
--------- --------- ----------- ------------------
True 192.168 . 1.27 computer1 computername1.fqdn
True 192.168 . 1.28 computer2
True 192.168 . 1.29 computer3 computername3.fqdn[顶部]
警告:以提高特权运行此命令。
将任何条目添加到主机文件中。
Add-PsNetHostsEntry [[ - Path ] < String > ] [ - IPAddress ] < String > [ - Hostname ] < String > [ - FullyQualifiedName ] < String > Add-PsNetHostsEntry - IPAddress 127.0 . 0.1 - Hostname tinu - FullyQualifiedName tinu.walther.ch
Succeeded HostsEntry BackupPath Message
--------- ---------- ---------- -------
True 127.0 . 0.1 tinu tinu.walther.ch D:hosts_20190301 - 185838. txt Entry added[顶部]
警告:以提高特权运行此命令。
从主机文件中删除条目。
Remove-PsNetHostsEntry - Hostsentry ' 127.0.0.1 tinu ' Remove-PsNetHostsEntry - Hostsentry ' 127.0.0.1 tinu '
Succeeded HostsEntry BackupPath Message
--------- ---------- ---------- -------
True 127.0 . 0.1 tinu tinu.walther.ch D:hosts_20190301 - 190104. txt Entry removed[顶部]
在给定的TCP端口上暂时收听连接将连接到屏幕的连接
Start-PsNetPortListener - TcpPort 443
Listening on TCP port 443 , press CTRL + C to cancel
DateTime AddressFamily Address Port
-------- ------------- ------- ----
21.02 . 2019 19 : 55 : 39 InterNetwork 127.0 . 0.1 53613
21.02 . 2019 19 : 55 : 54 InterNetwork 127.0 . 0.1 53631
21.02 . 2019 19 : 56 : 07 InterNetwork 127.0 . 0.1 53666
Listener Closed Safely[顶部]
列出所有DNS搜索后缀。
Get-PsNetDnsSearchSuffix | Format-Table
Succeeded ComputerName DnsSearchSuffix TimeStamp TimeMs
--------- ------------ --------------- --------- ------
True WIN - J0EFIPPADQS {test.local} 2019 - 10 - 03 09 : 43 : 52.796 250[顶部]
将一个或多个新的DNS搜索后缀添加到列表中。
警告:以提高特权运行此命令。
Add-PsNetDnsSearchSuffix - NewDNSSearchSuffix test1.local , test2.local | Format-Table
Succeeded ComputerName DnsSearchSuffix TimeStamp TimeMs
--------- ------------ --------------- --------- ------
True WIN - J0EFIPPADQS {test.local , test1.local} 2019 - 10 - 03 09 : 47 : 39.573 78
True WIN - J0EFIPPADQS {test.local , test1.local , test2.local} 2019 - 10 - 03 09 : 47 : 39.588 16[顶部]
从列表中删除一个或多个DNS搜索后缀。
警告:以提高特权运行此命令。
Remove-PsNetDnsSearchSuffix - DNSSearchSuffix test1.local , test2.local | Format-Table
Succeeded ComputerName DnsSearchSuffix TimeStamp TimeMs
--------- ------------ --------------- --------- ------
True WIN - J0EFIPPADQS {test.local , test2.local} 2019 - 10 - 03 09 : 48 : 57.471 31
True WIN - J0EFIPPADQS {test.local} 2019 - 10 - 03 09 : 48 : 57.518 47[顶部]
从列表中删除所有DNS搜索后缀。
警告:以提高特权运行此命令。
Clear-PsNetDnsSearchSuffix | Format-Table
Succeeded ComputerName DnsSearchSuffix TimeStamp TimeMs
--------- ------------ --------------- --------- ------
True WIN - J0EFIPPADQS {} 2019 - 10 - 03 09 : 50 : 46.540 63[顶部]
您可以轻松将命令的所有输出作为JSON文件中的所有输出,并使用以下CMDLET:
例如,运行test-psnetdig:
Test-PsNetDig sbb.ch
Succeeded : True
InputString : sbb.ch
Destination : sbb.ch
IpV4Address : 194.150 . 245.142
IpV6Address : 2a00:4bc0:ffff:ffff::c296:f58e
TimeMs : 47将结果从test-psnetdig转换为json-object:
Test-PsNetDig sbb.ch | ConvertTo-Json
{
" Succeeded " : true ,
" InputString " : " sbb.ch " ,
" Destination " : " sbb.ch " ,
" IpV4Address " : {
" AddressFamily " : 2 ,
" ScopeId " : null ,
" IsIPv6Multicast " : false ,
" IsIPv6LinkLocal " : false ,
" IsIPv6SiteLocal " : false ,
" IsIPv6Teredo " : false ,
" IsIPv4MappedToIPv6 " : false ,
" Address " : 2398459586
} ,
" IpV6Address " : {
" AddressFamily " : 23 ,
" ScopeId " : 0 ,
" IsIPv6Multicast " : false ,
" IsIPv6LinkLocal " : false ,
" IsIPv6SiteLocal " : false ,
" IsIPv6Teredo " : false ,
" IsIPv4MappedToIPv6 " : false ,
" Address " : null
} ,
" TimeMs " : 4
}将JSON-Object从test-psnetdig导出到文件:
Test-PsNetDig sbb.ch | ConvertTo-Json | Set-Content D:PsNetDig.json[顶部]
享受psnettools!