Windows 运行 regkey 和 RDP

发布于 2024-08-10 00:29:02 字数 227 浏览 2 评论 0原文

当用户通过控制台登录和/或对计算机执行 RDP 时,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 注册表项的行为是否有任何差异。

我在运行键中列出了一个 exe,当有人登录时将启动该 exe。如果我通过控制台登录到 Win 2003 计算机,则会启动 exe,保持此会话打开,如果我执行 RDP,我会得到另一个会话,但这次 exe没有启动。

Is there any difference in behavior of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry key, when an user Logs in via console and/or does a RDP to the Machine.

I have a exe listed in Run key to be launched when somebody logs in. If I log in to a Win 2003 machine via console the exe is launched, keeping this session open if I do an RDP I get another session but this time the exe is not launched.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

傻比既视感 2024-08-17 00:29:02

我刚刚(在 Windows Server 2003 计算机上)验证了通过添加指向 c:\windows\system32\cmd.exe 的密钥打开的每个远程桌面会话都会运行一个进程。我应该提到,我使用的 Win2k3 计算机已加入域,我使用域凭据登录,并在登录第二个会话时保持第一个会话打开。我现在可以在屏幕上看到两个 RDP 会话,并且每个会话中都打开命令提示符。

考虑到这一点,您尝试运行的 exe 是否会在内存中检查自身/使用“保护文件”来确保任何时候只有一个副本处于活动状态?

I've just verified (on a Windows Server 2003 machine) that a process will run for every remote desktop session opened by adding a key that points to c:\windows\system32\cmd.exe. I should mention that the Win2k3 machine I used is domain joined, I logged in using my domain credentials and left the first session open whilst logging into the second session. I can now see both RDP sessions on my screen with a command prompt open in each of them.

With that in mind, does the exe you're attempting to run check for itself in memory / use a "guard file" to ensure that only one copy is active at any one time?

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