今天,我的Powershell已更新为3.0版。此版本基于.NET运行时4.0构建。 Sharepoint 2010 cmdlet需要.NET 3.5,并且不能在4.0下运行。任何人都有一个想法如何使脚本工作?
我收到此错误:
Remove-SPSite:Microsoft .Net运行时的版本4.0.30319.296不支持Microsoft SharePoint。
最佳答案
尝试使用以下命令启动powershell:powershell.exe -version 2.0
关于sharepoint - PowerShell 3.0 Sharepoint脚本不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13839217/