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.
world peace lakers colorectal cancer metta kashi neil diamond orange crush harden
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.