psexec读取文件的内容

时间:2014-02-14 00:12:32

标签: windows psexec

我正在尝试做一个简单的任务。使用PsExec读取文件的内容。

我试过了:

psexec \\<system> cmd "type C:\file.txt"

在机器上本地运行命令工作正常......但是使用psexec连接,远程启动psexec然后退出而没有输出。

继承人的输出:

PsExec v2.0 - Execute processes remotely
Copyright (C) 2001-2013 Mark Russinovich
Sysinternals - www.sysinternals.com


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

我试图寻找那些试图做同样事情却没有运气的人。

有什么建议吗?他们将不胜感激。

1 个答案:

答案 0 :(得分:2)

哈利在评论中回答了我的问题。

“type是内置命令,不是可执行文件”..

这有效:

psexec \\<system> cmd /c "type C:\file.txt"
相关问题