无法从任务计划程序执行脚本

编程入门 行业动态 更新时间:2024-10-10 12:24:39
本文介绍了无法从任务计划程序执行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我无法从任务计划程序执行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 /

更多推荐

无法从任务计划程序执行脚本

本文发布于:2023-11-23 21:23:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622904.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚本   计划   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!