PowerShell Remoting Cheatsheet

Remoting is one of the most useful and most remarkable features of Windows PowerShell. It allows you to run individual PowerShell commands or access full PowerShell sessions on remote Windows systems. It is a native Windows remote command execution feature that’s build on top of the Windows Remote Management (WinRM) protocol. The simplest way to use remoting is as an interactive shell, much like Secure Shell (SSH) on Unix or Linux systems.

PowerShell is locked-down by default, so you’ll have to enable PowerShell Remoting before using it.

In this article by Scott Sutherland we get some step-by-step instructions on how to enable this feature of PowerShell.

  1. In a PowerShell console running as administrator enable PowerShell Remoting.         

    This should be enough, but if you have to troubleshoot you can use the commands below

  2. Make sure the WinRM service is setup to start automatically.   
  3. Set all remote hosts to trusted. Note: You may want to unset this later.        

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.