在另一个Windows终端会话中的Runas [英] Runas in another Windows terminal session
问题描述
为简单起见,假设用户Administrator
登录到终端会话2
中.另一个用户Boda
登录到终端会话3
.
是否可以从会话2
中将runas
放在会话3
中的程序?
为简单起见,假设我要在会话3
(在Boda的会话中)中启动calc.exe
.我怎么做?可以用runas
完成吗?
就像哈里·约翰斯顿(Harry Johnston)在评论中建议的那样,您可以使用psexec
工具 解决方案
Like Harry Johnston suggested in a comment you can do this using the psexec
tool available on TechNet. I've tried it using a Windows 2008 Server running Terminal Services and managed to start various applications in another users session (although not calc.exe - it started but minimized and the window refused to restore), among them cmd.exe.
The command I used was psexec.exe -i 3 cmd.exe
where 3
is the session number (that you can get from qwinsta.exe
).
Example: Remote session, logged on as Administrator; using qwinsta to enumerate sessions and psexec
to start cmd.exe
on another session.
Another session: logged on as Patrick, with the cmd.exe
window on the desktop opened by Administrator (which the window title reveals too).
这篇关于在另一个Windows终端会话中的Runas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!