Command Line
PowerShell Network Basics
Inspect IP configuration, adapters, DNS, and TCP connectivity with PowerShell.
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-NetIPConfigurationList adapters
Run Get-NetAdapter and look for Up status.
Command
Get-NetAdapter | Sort-Object Status, NameInspect DNS servers
Run Get-DnsClientServerAddress.
Command
Get-DnsClientServerAddress -AddressFamily IPv4Test a service port
Replace the host and port with the service you are authorized to test.
Command
Test-NetConnection -ComputerName server.example -Port 443Do not confuse reachability with authorization
An open port does not grant permission to use or administer a system.