共用方式為


Disable VMConsoleSupport???

In Windows 10 / Windows Server 2016 we have two, rather odd, new PowerShell cmdlets:

Disable-VMConsoleSupport
Enable-VMConsoleSupport

These cmdlets respectively remove and add the video adapter, mouse and keyboard from the virtual machine (note - they only work on a Generation 2 virtual machine).

At this point in time you might be wondering: "Why on earth would I want to do that?"

Well, in a large data center it is not unusual to find physical servers that are completely headless - with no video or keyboard.  However, most people do not have these sorts of servers in their labs / offices for testing.  Now you can use Hyper-V virtual machines to test how your software behaves when it is running on a truly headless computer.

Cheers,
Ben

Comments

  • Anonymous
    March 05, 2016
    That's interesting and I wonder if removing console could save a little bit resources on the host? I have a DC for my own use hosted on my Windows 10 as server core with win32 removed to save the resources for my daily use on the host. If removing console could save a little bit more, I would definitely do do.
  • Anonymous
    March 06, 2016
    I'm sitting here and thinking back, and i don't think I've evner needed that opportunity of running complet headless, but nice to know it can be done.Another thing is, how do you turn on the VMControl again after disabling the keyboard?
  • Anonymous
    March 28, 2016
    Boa noiteCurti muito esse site.Beijos!Mariana Turis da Jornal Netshoes