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













2 comments
Ravikanth
February 16, 2010 at 11:21 am (UTC 0)
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
Chris McKinley
February 16, 2010 at 11:39 am (UTC 0)
Good stuff, thanks Ravikanth.