渡人自渡 发表于 2018-6-19 07:58:39

Windows PowerShell Direct-1+1=?

要求
  操作系统要求:

[*]  主机:可运行 Hyper-V 的 Windows 10 、Windows Server Technical Preview 2 或更高版本。
[*]  来宾/虚拟机:Windows 10 、Windows Server Technical Preview 2 或更高版本。
  
  配置要求:

[*]  虚拟机必须在主机上本地运行。
[*]  虚拟机必须开启,且运行时需至少具有一个配置的用户配置文件。
[*]  必须以 Hyper-V 管理员身份登录主机计算机。
[*]  必须为虚拟机提供有效用户凭据。
  虚拟机可以不需要网络
  测试创建并退出交互式会话。
  由于操作简单,直接贴图:
Enter-PSSession -VMName <VMName>  
Enter-PSSession -VMId <VMId>

  登录后如图:

  断开会话:

  参考:
  https://docs.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/user-guide/powershell-direct
页: [1]
查看完整版本: Windows PowerShell Direct-1+1=?