Tired 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”
– 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.