2013-07-01 68 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 
相關問題