Ask the Expert

Enable PowerShell remoting to run commands on remote machines

How do I enable PowerShell remoting?

    Requires Free Membership to View

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: