3,245
社区成员
发帖
与我相关
我的任务
分享

•Type "PowerShell -v 2" (without quotes). This loads PowerShell version 2, and you should be able to use it for SharePoint. Just type 'Exit' to get back to PowerShell v3
•Add '-version 2.0' parameter when executing PowerShell 3.0, and SharePoint integration should work.
•Change the Target field value for SharePoint 2010 Management Shell to the following:
C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -Version 2.0 -NoExit " & ' C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\\SharePoint.ps1 ' "