Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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: sharepoint.stackexchange.com/questions/53953/… –  KHA Feb 22 '13 at 12:40
add comment

1 Answer 1

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? –  KHA Feb 21 '13 at 23:03
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.