如何访问特定域用户下的任务计划程序运行的Windows应用程序的GUI?
在我们运行 Windows Server 2008 R2 的服务器上,有一个计划任务,该任务在特定域用户下运行 Windows 应用程序 (.Net 4.0),该用户执行一些任务,并在双击弹出的表单上的列表框中报告其进度。托盘图标(任务栏右侧)。
我知道,如果我使用计划任务运行应用程序的用户之外的其他用户登录到服务器(我只能远程桌面到服务器),我将无法看到该应用程序的任何用户界面,但会出现问题即使我使用与计划任务相同的登录名进行远程桌面,我也看不到托盘图标,因此也看不到应用程序用户界面。
我想知道这个限制从何而来,以及如何才能看到应用程序 UI。有什么想法吗?
On our server running Windows Server 2008 R2 there is a scheduled task that runs a Windows application (.Net 4.0) under a specific domain user that performs some tasks and reports its progress in a listbox on a form that pops up by double clicking on a tray icon (right hand side of the task bar).
I understand that if I logon to the server (I can only remote desktop to the server) with a different user other than the one the scheduled task runs the application under I would not be able to see any user interface of the application but the problem is even if I remote desktop with the same login as that of the scheduled task I cannot see the tray icon and consequently the application user interface.
I wonder where this limitation comes from and how I could make is possible to see the application UI. Any idea please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您远程到服务器时,您可能没有使用 /admin 开关,该开关将显示控制台视图(可能您的应用程序正在运行)而不是“第二个会话”。
Possibly when you remote to the server you are not using the /admin switch which will present the console view (where presumbly your app is running) rather than the "2nd session".
我不认为这是一个限制,它是系统安全设计的一部分。
处理这种情况的一种常见方法如下:
如果您这样做,那么很有可能在另一台计算机上运行 UI,这听起来可能会让您的生活更轻松。
I don't see that this is a limitation, it's part of the security design of the system.
One common way to handle such a scenario would be as follows:
If you do it this way then it is quite possible to run the UI on a different computer which sounds like it might make life easier for you.