有没有办法 psexec 进入我自己的虚拟机(windows xp 模式)? [英] Is there a way to psexec into my own virtual machine (windows xp mode)?

查看:35
本文介绍了有没有办法 psexec 进入我自己的虚拟机(windows xp 模式)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的 windows xp 模式虚拟机的 cmd 提示符下从我的 windows 7 主计算机上运行命令.我试图查看 windows xp 模式计算机的名称,它是 virtualXP-63912,所以我试过:psexec \\virtualXP-63912 cmd"但它不起作用.关于如何让它工作的任何想法?

I am trying to run commands on the cmd prompt of my windows xp mode virtual machine from my main computer which is in windows 7. I've tried to look at the name of the windows xp mode computer which is virtualXP-63912, so i tried : "psexec \\virtualXP-63912 cmd" but it doesn't work. Any ideas of how I can get this to work?

推荐答案

如此处所见,您需要将您的虚拟机从NAT"模式更改为允许网络访问,但没有本地网络连接(这是您能够在 XP 模式 VM 上执行 psexec 或运行远程 powershell 命令,并且还能够访问 \computername\admin$ 共享,这是 PSExec 用于远程处理的内容)到NIC 模式,它将您的 VM 桥接到网络,并为其提供本地可路由 IP 地址.

As seen here, you need to change your VM from 'NAT' mode, which allows for web access but no local network connectivity (which is what you need to be able to psexec or run remote powershell commands on your XP mode VM, and also to be able to access the \computername\admin$ share, which is what PSExec uses for remoting) to NIC mode, which will bridge your VM to the network, and give it a local routable IP address.

简而言之,打开 Windows XP Mode 控制台,选择您的 XP Mode Vm 并转到设置,然后将网络设置更改为桥接,如上所述在这篇来自 Microsoft 的关于该问题的帖子中.

In short, open the Windows XP Mode console, select your XP Mode Vm and go to settings, then change the network setting to bridged, as discussed in this post from Microsoft on the issue.

最后,如果我可以建议,请退出 XP 模式.现在它的支持并不好,新的替代品,Windows 8.0 及更高版本的 Hyper-V 内置在桌面操作系统中,并且填充了更多的功能.您可以从桌面复制并粘贴到虚拟机中,并在您的 Windows 机器上运行带有 Linux 的机器,甚至是 OSX.

Finally, if I may suggest it, move off of XP Mode. It's not supported well these days and the new replacement, Hyper-V for Windows 8.0 and above is built-in to the desktop OS and is much, much more feature filled. You can copy and paste from your desktop into a VM, and run machines with Linux, even OSX on your Windows machine.

这篇关于有没有办法 psexec 进入我自己的虚拟机(windows xp 模式)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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