O'Reilly logo

SQL Server 2012 with PowerShell V3 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

We first need to identify which remote machine we want to use. In our recipe, we will connect to a remote machine called ZERATULDC from our client machine KERRIGAN. These two machines are in the same domain.

Log in to ZERATULDC, or to a machine you want to use for remoting. We need to enable PowerShell Remoting. Check out the system and permission requirements for running PowerShell Remoting from MSDN about_Remote_Requirements, available at http://msdn.microsoft.com/en-us/library/hh847859.aspx.

To turn on remoting, open up the PowerShell console using elevated privileges. Right-click on the PowerShell console and go to ...

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