只有通过RDP登录时,任务计划程序才会在启动VM时启动应用程序。 [英] Task Scheduler does not start the app when starting the VM, only when logging via RDP.

查看:86
本文介绍了只有通过RDP登录时,任务计划程序才会在启动VM时启动应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:我需要在从广义图像创建VM后尽快运行应用程序。该应用程序包含在此图像中。我无法在没有登录VM的情况下运行它。



我在任务计划程序中创建了一个任务,检查选项"运行用户是否已登录或者不是,但是只有当我通过远程连接访问机器时,应用程序才会运行。



是否有人有解决此问题的方法或者每个运行应用程序的替代方法机器开机的时间?

解决方案

您好Monomyto, 



您可以在部署后运行脚本时使用自定义脚本扩展。这是doc:  https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows


如果你让我知道还有任何问题。



----------------------------------- -------------------------------------------------- ----------------------


如果您发现这篇文章有帮助,请给它一个"有用"的投票。 


如果答案有帮助,请记得将答案标记为答案。




Problem: I need to run an app as soon as possible after creating a VM from a Generalized Image. The app is included in this image. I can not get it to run without logging into the VM.

I created a task in the Task Scheduler, checking the option "Run whether the user is logged on or not", but the application only runs if I access the machine via remote connection.

Does anyone have a solution to this problem or an alternative to running the application every time the machine is powered on?

解决方案

Hi Monomyto, 

You can use custom script extension when will run your script post deployment. Here is the doc: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows

Let me know if you have any further questions.

-----------------------------------------------------------------------------------------------------------

If you found this post helpful, please give it a "Helpful" vote. 

Please remember to mark the replies as answers if they help.


这篇关于只有通过RDP登录时,任务计划程序才会在启动VM时启动应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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