在没有凭据的情况下在RDS2012上以App用户身份运行 [英] Run App as User on RDS2012 without Credentials

查看:84
本文介绍了在没有凭据的情况下在RDS2012上以App用户身份运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午全部,



希望你能在这里阐明一些,我有一个在RDS 2012 RD会话主机上运行的应用程序,它循环遍历整个过程从Win32_Process列出并编译一个运行特定进程实例的人员列表。



现在,我希望能够实现的是运行应用程序该用户如果没有运行,则要求所有用户始终保持此运行,如果他们设法关闭它,我需要该应用程序才能重新启动它。



我考虑过模仿,但通常你需要用户名和密码,有没有办法在缺少流程的用户下启动应用程序而不需要他们的用户名/密码?



非常感谢这里的任何指导。



问候

Dev

Afternoon All,

Hoping you can shed some light here, i have an application that runs on an RDS 2012 RD Session host, it loops through the the process list from Win32_Process and compiles a list of who is running a specific instance of an process.

Now, what i want to be able to achieve is to run the application as that user if it is not running, it is a requirement for all users to have this running at all times and if they manage to close it for what ever reason i need the app to be able to restart it.

I thought about impersonation, but usually you need the username and password, is there a way of starting the application under the user that is missing the process without needing their username/password?

Would appreciate any guidance here.

Regards
Dev

推荐答案

这是一个什么样的应用程序,你正在监视和试着g重新启动?



如果它是一个提供任何类型用户界面的应用程序,即使您启动应用程序,您的用户也无法看到它作为该用户。



虽然可以远程启动应用程序,但现在该机器上的用户与其进行交互是不可能的。由于显而易见的原因,这是Windows强加的安全限制。
What kind of app is this that you're monitoring and trying to relaunch?

If it's an application that puts up any kind of user interface at all your users will not be able to see it, even if you launch the app as that user.

While it is possible to remotely launch an application, it is now IMPOSSIBLE for the user on that machine to interact with it. This is a security restriction imposed by Windows that you can not get around, for obvious reasons.


服务只能在默认桌面上运行。如果需要监视每个用户桌面活动,则每个会话都需要运行exe。有一些方法可以隐藏exe,但它们并不那么容易。



本文有一节关于从任务栏隐藏应用程序。

如何制作Windows表单应用程序真正的全屏(和隐藏任务栏)在C# [ ^ ]



这是可能的,但是有缺陷和困难,从其他监视器隐藏exe,例如任务管理器
A service can only run on the default desktop. If you need to monitor each users desktop activity then each session will require an exe to be running. There are ways you can hide the exe but they aren't so easy.

This article has a section on hiding apps from the taskbar.
How To Make a Windows Form App Truly Full Screen (and Hide Taskbar) in C#[^]

It is possible, but buggy and difficult, to hide the exe from other monitors such as task manager


这篇关于在没有凭据的情况下在RDS2012上以App用户身份运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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