使用 PowerShell 和 WinRM 访问远程计算机上的 GUI

发布于 2024-12-19 04:26:00 字数 172 浏览 4 评论 0原文

是否可以使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

执手闯天涯 2024-12-26 04:26:00

据我了解,从 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文