在另一个Windows终端会话中的Runas [英] Runas in another Windows terminal session

查看:129
本文介绍了在另一个Windows终端会话中的Runas的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为简单起见,假设用户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屋!

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