«

»

Feb 16

PowerShell ISE in Server 2008 R2 With SharePoint Modules

Some of you may have noticed that the ISE environment is not there as a default for Server 2008 R2. This post will go through adding it and also loading the SharePoint modules to enable you to script all your sharepoint bit’s and pieces in a nice environment.

The ISE is just a windows feature. So  click server manager:

Features, Add features:

Tick The Windows Powershell ISE Feature, Click next then install.

It will say that the server may require a restart. The server does not require a restart to add the ISE.

That’s it! It’ll now be on your start menu. If you want to do it all via script then I found this blog from Shay Levy

One thing I found with the ISE was that the Modules and Snapins for SharePoint are not loaded. This means that you can’t run the good old New-SPWeb command! If anyone finds a better way of doing this please let me know but this is how I work so far:

Load PS with modules (As Admin):

Then in the console type “ise” (no quotes) and the ISE will load up – the magic of an Alias!

Run this command from the ISE:

Add-PSSnapin Microsoft.SharePoint.Powershell

And you are good to go with all the SharePoint cmdlets.

Like I said, please let me know if you know a better way of loading the Powershell ISE with all the modules and snapins ready to go!

About Chris McKinley

Chris McKinley has written 26 post on this blog.


Technorati Tags: , ,

Related posts:

  1. SharePoint 2010 Powershell Commands Help Yesterday i did a post The first steps to SharePoint...
  2. The first steps to SharePoint 2010 PowerShell Heaven As Chris showed in his post last week Create SharePoint...
  3. Create SharePoint 2010 sites using PowerShell reading an XML file Just a quick post to show how easy it is...
  4. Teaching an old dog new tricks. Using PowerShell to make life better. PowerShell has been around for a while now and I...
  5. DHCP Server 2008 R2   One of the issues we have been seeing in...
  6. The First Post   Myself and Chris McKinley have been posting the occasional...

2 comments

  1. Ravikanth

    You can use PowerShell ISE profiles to add this command Add-PSSnapin Microsoft.SharePoint.PowerShell so that it loads every time you open ISE and have all the SharePoint cmdlets available.

    http://technet.microsoft.com/en-us/library/dd819434.aspx

  2. Chris McKinley

    Good stuff, thanks Ravikanth.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>