Authoring, debugging, and executing script accessing farm settings with PowerGUI and PowerShell ISE

As you can see from the previous recipe, authoring and executing a PowerShell script is a simple task that can be done right from the command line. In this recipe, we'll take a look at how you can author and debug your PowerShell scripts using two of the most popular tools: PowerShell ISE and PowerGUI. Using these tools, we'll execute a script accessing farm settings of the SharePoint site.

Getting ready

First, let's ensure you have installed PowerShell ISE:

  1. On the target Virtual Machine, click Start | Administrative Tools | Server Manager.
  2. On the left-hand side panel of the Server Manager window, click the Features node.
  3. In the main window of the Server ...

Get Microsoft SharePoint 2010 Developer Compendium now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.