jav*_*nix 5 powershell psexec ubuntu windows-server-2012
我正在尝试从 Ubuntu 连接到 Windows 2012 服务器。
winexe --user <USER> --password <SERVER> //SERVER cmd.exe
Run Code Online (Sandbox Code Playgroud)
工作得很好。
然而,
winexe --user <USER> --password <SERVER> //SERVER powershell.exe`
Run Code Online (Sandbox Code Playgroud)
只是挂起。
它显示:
Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.
Run Code Online (Sandbox Code Playgroud)
但在那之后它只是挂起并且不会响应按键。
是否需要将参数传递给 powershell 才能使其以交互模式或其他方式运行?
编辑
如果我通过 strace 运行上面的命令,它似乎在等待服务器发回一些东西。
epoll_wait(4, {}, 1, 10) = 0
epoll_wait(4, {}, 1, 10) = 0
epoll_wait(4, {}, 1, 10) = 0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6991 次 |
| 最近记录: |