SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Windows Server 2008 R2 with SharePoint 2010.

I see two PowerShell tools on this machine: Windows PowerShell and the SharePoint 2010 Management Shell.

Does anyone know the difference? Can I use both for deployments of wsp files?

share|improve this question
This was the solution:… – Ola Feb 22 '13 at 12:40

The SharePoint 2010 Management Shell is an instance of PowerShell that already has the SharePoint PSSnapIn loaded. You can use either to deploy SharePoint .wsp solution packages.

Prefacing your script with:

if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) 
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"

will ensure that it will run from either shell instance.

share|improve this answer
there is also windows powershell modules. I have test some deployment commando's and it works. why there are many types powershells? – Ola Feb 21 '13 at 23:03

Your Answer


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.