IT 442: Windows Operating System

Network PowerShell Cmdlets

Introduction

Installing PowerShell on macOS

Ping devices locally or remotely: Test-NetConnection -ComputerName “Hostname or IP”

Check connectivity based on port or service: Test-NetConnection “Hostname” -Port #

Trace route communications: Test-NetConnection “Hostname” -traceroute

Obtain IP configuration details: Get-NetIPConfiguration

Perform DNS lookups: Resolve-DnsName -Name “Hostname”

View current TCP connections: Get-DnsClient, Set-DnsClientServer Address

Flush DNS cache: Clear-DnsClientCache

Release and renew DHCP leases

Disable and enable network adapters

Additional Tools

Reference