Connecting to Windows computers with WinRM and SSH
In this section, we'll learn how to connect to remote Windows computers with both WinRM and SSH. Historically, the main way to connect to a remote Windows computer was with Remote Desktop. The Remote Desktop application was graphical; it showed the desktop of the remote computer, along with the cursor, icons, and menus. However, many modern Windows servers, such as those running Windows Server Core, are now headless—that is, they don't include a graphical user interface at all! This is done to both decrease installation size, and thus the size of updates, as well as to reduce the attack surface of the server. While Remote Desktop can still be used to connect to these headless servers, it only renders a terminal.
Rather than using a graphical application such as Remote Desktop to render a terminal, we can just use Windows Terminal to connect directly to the remote computer, without any graphical programs required...