Enabling and working with remote connection and administration through PowerShell

Working with PowerShell can be very common for daily tasks and server management. However, as there is more than one server to manage, sometimes it can be difficult to log on and run the PowerShell scripts (most of the time, the same one) on different computers.

One of the benefits that PowerShell offers is the remote option that allows you to connect to multiple servers, enabling a single PowerShell window to administer as many servers as you need.

This recipe will show you how to enable PowerShell to be managed remotely and some commands to connect to different computers.

Getting ready

The PowerShell remote connection uses HTTP port 80. Although the local firewall ...

Get Windows Server 2016 Hyper-V Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.