无法从任务计划程序执行脚本 [英] Unable to execute script from task scheduler

查看:74
本文介绍了无法从任务计划程序执行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

https://blogs.technet.microsoft.com/mspfe/2012/09/05/sharepoint-2010-management-shell-net-4-0 -runtime-version-error /


这篇关于无法从任务计划程序执行脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆