Print
EmailTired of switching PowerShell windows between the main console, SharePoint and Fast? Here’s a quick way to combine all the consoles to one.
- Open the main powershell console and type “$profile” (no quotes) view the location of the profile. Chances are it will be in User\Profile\WindowsPowerShell\Microsoft.PowerShell.profile.ps1 but the following steps you will follow the location of the profile path. In my case it was the above so the steps are as follows.
(there is a powershell console for SharePoint, one for Fast and one for Windows itself)
- Go to your machine > Start > Computer > MyDocuments (documents)
- Create a new folder in this folder called “WindowsPowerShell” (no quotes)
- Add a new text file and name it “Microsoft.PowerShell.profile.ps1” (no quotes)
- Open this file (it will be blank) and add the following lines)
- “add-pssnapin “Microsoft.SharePoint.PowerShell” (no quotes)
- if you’re using fast add “add-pssnapin “Microsoft.FastSearch.PowerShell”
- Save
- Close previous PowerShell console
- Open Main “Windows” console (there is a powershell console for SharePoint, one for Fast and one for Windows itself)
- type “get-command get-sp*” (no quotes)
- Hit “enter”
You should see all the “SP” commandlets load. There ya go. Enjoy.
Ref: "RO" Fox
Please wait while my tweets load 
| Weight Loss or Bust - So did it work? Updated: January 2, 2012 |
| SharePoint Search and DisableLoopBackCheck Updated: December 18, 2011 |
| SharePoint Conferences 2011 + Asia Updated: November 15, 2011 |
| It’s sick, but I love the turbulence. Updated: November 15, 2011 |
| Cruise on up to the Med Updated: October 22, 2011 |
| SPC11 MSPFE Meet and Greet Updated: September 30, 2011 |
| Ebay, you reek of Idiocy Updated: July 6, 2011 |
| Hard CORE AD Core setup for SharePoint Updated: May 31, 2011 |