Wednesday, 7 December 2011

SharePoint 2010 - PowerShell + IntelliSense = PowerGUI

I recently came across a tool that makes authoring PowerShell scripts easier PowerGUI.

PowerGUI and its in-built intellisense allows you to browse through the different PowerShell commands and unlock the power of PowerShell to automate administrative tasks and quickly change objects within the SharePoint API.

You can download it from here

Once you have downloaded and installed the program you need to load in the Microsoft.SharePoint.PowerShell library snapin.

Step 1

Within PowerGUI Click on File then PowerShell Libraries

1 - Powershell Libraries

STEP 2

In the Snapins/Modules window Select the Microsoft.SharePoint.PowerShell library and Click OK

2 - Snapins

STEP 3

You are now ready to start using the SharePoint PowerShell library.  Click New File

3 - New File

STEP 4

Within the PowerGUI code editor when you type you should know have IntelliSense on the different SharePoint - PowerShell commands.

4 - Intellisence

STEP 5

Once you have created your new script you can run it by clicking on the Start icon

5 - Run Script

STEP 6

The output from your script will know be output in the console window.

6 - Script Output

1 comment:

  1. I read your blog.I thought it was great.. Hope you have a great day. God bless.

    Rica
    www.imarksweb.org

    ReplyDelete