执行 psexec 时出现问题
我正在尝试运行下面的命令
psexec \\remotemachine -u username -p password notepad
根据我的理解,上面的命令应该在远程机器上启动记事本, 但这并没有发生。
奇怪的是,每次执行上述命令时,都会创建 notepad.exe 进程(我看到了远程机器的 tskmgr),但记事本没有显示。
我是否遗漏了命令中的任何内容
顺便说一下,我使用的是 64 位机器,并且两台机器都在同一域中
I am trying run below command
psexec \\remotemachine -u username -p password notepad
As per my understanding, above command should launch notepad on remotemachine,
but it doesn't happen.
Strangely notepad.exe process gets created(I saw the tskmgr of remotemachine) every time i execute above command but notepad doesn't show up.
Am I missing anything in the command
By the way I am using 64 bit machines and both machines are on same domain
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您尝试过
-i
开关吗?:-i
开关描述如下:控制台会话是您在连接到计算机的物理屏幕上看到的内容。如果您正在使用远程桌面会话并希望它出现在此处,那么首先您需要确定您希望在其中显示 UI 的会话的 ID,您可以使用远程系统上的任务管理器查看该 ID(ID 列)用户选项卡)。然后,在“-i”开关后面传递 ID,如下所示:
省略会话 ID 相当于指定会话 ID 0。
其他开关记录在此处:http://technet.microsoft.com/en-us/sysinternals/bb897553
Have you tried the
-i
switch?:The
-i
switch is described as follows:The console session is what you would see on the physical screen attached to the machine. If you are using a Remote Desktop session and would like it to appear there, then first you need to determine the ID of the session in which you want the UI to appear, which you can see using Task Manager on the remote system (ID column of Users tab). Then you pass the ID after the '-i' switch as follows:
Omitting the session ID is the equivalent of specifying a session ID of 0.
Other switches are documented here: http://technet.microsoft.com/en-us/sysinternals/bb897553