千家信息网

Windows PowerShell Direct

发表于:2025-02-03 作者:千家信息网编辑
千家信息网最后更新 2025年02月03日,要求操作系统要求:主机:可运行 Hyper-V 的 Windows 10 、Windows Server Technical Preview 2 或更高版本。来宾/虚拟机:Windows 10 、Wi
千家信息网最后更新 2025年02月03日Windows PowerShell Direct

要求

操作系统要求:

  • 主机:可运行 Hyper-V 的 Windows 10 、Windows Server Technical Preview 2 或更高版本。

  • 来宾/虚拟机:Windows 10 、Windows Server Technical Preview 2 或更高版本。


配置要求:

  • 虚拟机必须在主机上本地运行。

  • 虚拟机必须开启,且运行时需至少具有一个配置的用户配置文件。

  • 必须以 Hyper-V 管理员身份登录主机计算机。

  • 必须为虚拟机提供有效用户凭据。


虚拟机可以不需要网络

测试创建并退出交互式会话。

由于操作简单,直接贴图:

Enter-PSSession -VMName Enter-PSSession -VMId 


登录后如图:

断开会话:


参考:

https://docs.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/user-guide/powershell-direct

0