Network configuration in Windows

Working with the network in PowerShell
Open ports
Check if a port is open
Open a port
Get-NetIPConfiguration: network information
Allow RDP connections
OpenSSH server status
Start sshd
hostname: find out the host name
Firewall
How to prevent a computer from accessing a certain site
How to find out the IP of a site
How to configure Windows Firewall
FAQ
Open a port in Windows Firewall
Allow ping in Windows Firewall
PSTools
PSLoggedon
Telnet
Telnet in Windows 10
Installation
Installation in Windows Subsystem for Linux
Demonstration of capabilities
Escape character is '^]' does not work
RDP
RDP: Remote desktop
SSH tunnel for RDP
Allow connections over RDP
Example
Access to a CD drive
SSH
Introduction
Check version
Install with Windows Settings
Install with PowerShell
Start
Connect
Configs
Uninstall with Settings
Uninstall with PowerShell
net tools
net tools
net view
net use

Introduction

Inspect the IP

netsh interface ipv4 show config

Set a static IP

netsh interface ipv4 set address name="Ethernet 2" static 192.168.56.116 255.255.255.0 192.168.56.1

hosts

The mapping between a domain name and an IP address can be set in the file hosts from the directory

C:\Windows\System32\drivers\etc

Article author: Andrei Olegovich