Q

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.

This was first published in April 2013

Dig deeper on Microsoft Hyper-V management

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchVMware

SearchWindowsServer

SearchCloudComputing

SearchVirtualDesktop

SearchDataCenter

Close