# Is It the Network? Test-Connection and Friends

When one computer can't reach another, four questions in order find where it breaks, each with its own command, Get-NetIPAddress for whether this PC has an address, Resolve-DnsName for whether the name turns into an address, Test-Connection for whether the computer answers, and Test-NetConnection -Port for whether the program's door is open.

![Cheat sheet for the lesson Is It the Network? Test-Connection and Friends: When one computer can't reach another, four questions in order find where it breaks, each with its own command, Get-NetIPAddress for whether this PC has an address, Resolve-DnsName for whether the name turns into an…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/616e730fb94a4f69aab86371d2a0f4da.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: dns, IP Address, operating-system, port, powershell, resolve-dnsname, test-connection, test-netconnection
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-network-checks-cheat-sheet
