2013-07-01 2 views
2

В SharePoint после развертывания командной строки у меня есть: %windir%\sysnative\windowspowershell\v1.0\powershell -File "$(ProjectDir)Scripts\Post-Deployment\Script.Post-Deployment.ps1"Пост-Predeploymet SharePoint не распознает некоторые термины

После запуска развертывания я получил эту ошибку:

The term 'Get-SPBusinessDataCatalogMetadataObject' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

ли кто-нибудь имеет решение?

Спасибо!

ответ

2

Убедитесь, что вы загрузите SharePoint оснастку, поставить это в начале сценария:

Add-PSSnapin Microsoft.SharePoint.PowerShell 
Смежные вопросы