Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I installed SharePoint Foundation 2010 on Windows Server 2008 R2. I notice that no SP cmdlets are available in the PowerShell.

What did I miss?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

It could be that the snapins aren't loaded in your powershell session.

Try this command:

Add-PSSnapin Microsoft.SharePoint.Powershell

share|improve this answer
    
That worked! I wonder why that is not installed by default... –  mmcglynn Jun 6 '11 at 17:59
    
There's probably a certain console window you have to open that might be somewhere in the programs menu. If you are going to be doing this alot, I'd suggest adding a powershell profile (google profile.ps1) with that command in it. –  Chris N Jun 6 '11 at 18:06
add comment

It is installed by default, but it is not loaded into your profile by default. You can add it so it always loads by editing one of the default Powershell profiles. From within Powershell, run help profile to find out more about which profile to use.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.