Screensie
← All guides

Command Line

PowerShell Network Basics

Inspect IP configuration, adapters, DNS, and TCP connectivity with PowerShell.

Updated September 2, 2026Difficulty: EasyTime: 7 minApplies to: Windows, Windows 10, Windows 11

Follow the steps in order and stop if the screen or target does not match what is described. Use administrator access only when the task requires it.

Open PowerShell

A normal session is sufficient for these read-only checks.

View active configuration

Run Get-NetIPConfiguration.

Command
Get-NetIPConfiguration

List adapters

Run Get-NetAdapter and look for Up status.

Command
Get-NetAdapter | Sort-Object Status, Name

Inspect DNS servers

Run Get-DnsClientServerAddress.

Command
Get-DnsClientServerAddress -AddressFamily IPv4

Test a service port

Replace the host and port with the service you are authorized to test.

Command
Test-NetConnection -ComputerName server.example -Port 443

Do not confuse reachability with authorization

An open port does not grant permission to use or administer a system.