通过 Web 界面运行 Windows 任务计划程序

通过 Web 界面运行 Windows 任务计划程序

是否可以通过 Web 界面运行(按需)而不是安排已经在 Windows 任务计划程序下安排的简单任务?

任何建议都值得赞赏。

谢谢

信息:我们的 Apache 服务器在 Windows 7 企业版机器上运行。

答案1

您可以通过 powershell 运行计划任务,也可以从 php 执行 powershell。

https://stackoverflow.com/questions/5317315/executing-a-powershell-script-from-php举个例子

请注意,Windows Server 2012 中有一个本机的 Powershell Web 访问(并且 Powershell 可以连接到远程工作站):

Windows PowerShell® Web Access 最初在 Windows Server® 2012 中引入,可充当 Windows PowerShell 网关,提供基于 Web 的 Windows PowerShell 控制台,该控制台针对远程计算机。它使 IT 专业人员能够从 Web 浏览器中的 Windows PowerShell 控制台运行 Windows PowerShell 命令和脚本,而无需在客户端设备上安装 Windows PowerShell、远程管理软件或浏览器插件。运行基于 Web 的 Windows PowerShell 控制台所需的只是正确配置的 Windows PowerShell Web Access 网关,以及支持 JavaScript® 并接受 Cookie 的客户端设备浏览器。

来源 :https://technet.microsoft.com/en-us/library/Hh831611.aspx

相关内容