Get started Bring yourself up to speed with our introductory content.

Enable PowerShell remoting to run commands on remote machines

Managing multiple systems from a remote location can help save admins time and money, but first, you need to enable PowerShell remoting.

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.

Dig Deeper on Microsoft Hyper-V management

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.