我无法从任务计划程序执行powershell脚本。我的sharepoint 2010应用程序在Windows Server 2012上设置。
I am unable to execute powershell script from task scheduler. My sharepoint 2010 application is setup on Windows Server 2012.
我收到以下错误
PS> TerminatingError(Get-SPSite):" ; Microsoft .Net运行时版本4.0.30319.34014不支持Microsoft SharePoint。< b $ b Get-SPSite:Microsoft .Net运行时版本4.0.30319.34014不支持Microsoft SharePoint。
PS>TerminatingError(Get-SPSite): "Microsoft SharePoint is not supported with version 4.0.30319.34014 of the Microsoft .Net Runtime." Get-SPSite : Microsoft SharePoint is not supported with version 4.0.30319.34014 of the Microsoft .Net Runtime.
任何人都可以帮我这个
推荐答案
HI Iftikar,
HI Iftikar,
首先尝试在本地执行该脚本,如果您遇到相同的错误,则可以使用以下文章。
First try to execute that script locally and if you got the same error then You can the below article.
blogs.technet.microsoft/mspfe/2012/09/05/sharepoint-2010-management-shell-net-4-0 -runtime-version-error /
更多推荐
无法从任务计划程序执行脚本
发布评论