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 Manager, click Add Features.
4. From the Add Features Wizard, ensure Windows PowerShell Integrated Scripting Environment (ISE) is selected. If it is selected and grayed out, as seen in the following screenshot, skip to Step 6 in this...