How do I enable PowerShell remoting?
Performing large-scale, real-time management or automating management tasks is easy with PowerShell. Whether you're managing System Center Virtual Machine Manager or any other Microsoft product, you can increase productivity and reduce IT management costs with a PowerShell feature called remoting, which permits you to run commands on remote systems.
First, you must enable PowerShell remoting. The feature is enabled on Windows Server 2012 by default, but if you're using Windows Server 2003, 2008 or 2008 R2, you will need to turn it on. There are two ways to enable PowerShell remoting: manually or using a Group Policy.
You can enable PowerShell remoting manually at the server by opening an administrative PowerShell console and typing the following:
PS C:\> Enable-PSRemoting -Force
Remoting is something you really want to enable on all your servers, and running around inside a cold data center to do it manually at each server is not my idea of fun. The best way to enable PowerShell remoting is with a Group Policy:
ComputerConfiguration/Policies/Administrative templates/Windows Components/Windows Remote Management (WinRM)/WinRM Service
Enabling PowerShell remoting is easy in most environments, but if you need detailed information on configuring remoting, there is a great free e-book called Secrets of PowerShell Remoting by Don Jones and Dr. Tobias Weltner.
This was first published in April 2013