使用 PowerShell 和 WinRM 访问远程计算机上的 GUI
是否可以使用 PowerShell 和 WinRM 来访问远程计算机上的 GUI?
我有一个使用 UI 自动化框架来检查某些 GUI 的应用程序。 该应用程序应该在某些机器上远程运行。
现在我可以远程运行应用程序,但看不到任何 UI 元素(这是非常明显的)。
对此最好的方法是什么。
Is it possible to get access to a GUI on a remote machine using PowerShell with for example WinRM?
I have an application which uses UI Automation framework to examine some GUI.
This application should be run remotely on some machine.
Right now I am able to run application remotely but I can't see any UI elements (which is quite obvious).
What's the best approach for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,从 Vista 开始,微软阻止从服务访问交互式桌面。为了使我的服务七(在 XP 中与用户桌面交互)工作,我创建了一个在用户桌面上工作的进程来中继服务交互。 Windows 服务如何执行 GUI 应用程序解释了一些其他解决方案,但我不确定他们是否正在研究七/2008R2。
PS:根据about_Remote_Troubleshooting一些本机Windows程序,例如带有用户界面、提示输入的控制台应用程序以及使用 Win32 控制台 API 的控制台应用程序在 Windows PowerShell 远程主机中无法正常工作。
As far as I understand begining in Vista Microsoft block acces to the interactive desktop from a service. To make working on Seven, my services which were interacting with the user desktop in XP, I create a process working on the user Desktop that relay the service interaction. How can a Windows service execute a GUI application explain some other solution, but I'am not sure that they are working on Seven/2008R2.
PS : according to about_Remote_Troubleshooting Some native Windows programs, such as programs with a user interface, console applications that prompt for input, and console applications that use the Win32 console API, do not work correctly in the Windows PowerShell remote host.