PSNETTOOLS는 Windows, Linux 및 Mac에서 일부 네트워크 기능을 테스트하기위한 크로스 플랫폼 PowerShell 모듈입니다.

Joel Sallow의 Pswordcloud와 함께 생성 된 이미지.
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 > ]Example 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 : 3Example 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 3Example 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 Echo 답장 메시지를 수신하려고합니다.
Test-PsNetPing [ - Destination ] < String[] > [[ - try ] < Int32 > ] [ < CommonParameters > ]Example 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 : 19Example 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 SuccessExample 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 18Example 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 Test-NetConnection과 비슷하지만 MS에서 시간 초과를 지정할 수 있습니다.
Test-PsNetTping - Destination < String[] > [ - CommonTcpPort ] < String > [ - MinTimeout < Int32 > ] [ - MaxTimeout < Int32 > ] Test-PsNetTping - Destination < String[] > - TcpPort < Int32[] > [ - MinTimeout < Int32 > ] [ - MaxTimeout < Int32 > ]Example 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 : 8Example 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 : 14Example 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 1Example 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 ]Example 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 completedExample 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 addressExample 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 Test-NetConnection과 비슷하지만 MS에서 시간 초과를 지정하고 UDP의 쿼리를 지정할 수 있습니다.
Test-PsNetUping - Destination < String[] > - UdpPort < Int32[] > [ - MinTimeout < Int32 > ] [ - MaxTimeout < Int32 > ]Example 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 : 1000Example 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 1000msExample 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 ]Example 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 : 331Example 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 239Example 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 307Example 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 : {}[맨 위]
get -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- 호스트 파일 형식을 호스트 파일로 가져옵니다.
get-psnethoststable
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[맨 위]
다음 CMDLET을 사용하여 명령의 모든 출력을 JSON-File로 쉽게 내보낼 수 있습니다.
예를 들어 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를 즐기십시오!