O'Reilly logo

SQL Server 2014 with PowerShell v5 Cookbook by Donabel Santos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using PowerShell remoting

In this recipe, we will use PowerShell remoting to execute commands on a remote machine.

Getting ready

To work with remoting in PowerShell, we first need to identify which remote machine we want to use. In this recipe, we will assume that there are two machines in the same domain that we can use.

Log in to the machine you want to use for remoting. We will refer to this as <Remote Machine Name>. PowerShell remoting needs to be enabled on this machine.

Note

Check out the system and permission requirements for running PowerShell remoting from MSDN about_Remote_Requirements (http://msdn.microsoft.com/en-us/library/hh847859.aspx).

To turn on remoting, open the PowerShell console in <Remote Machine Name> using elevated privileges. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required