Last week Microsoft announced Windows 10 Insider Preview build 16215 which added a lot of new features to Windows 10. With Windows 8 Microsoft brought Hyper-V to the Windows Client Operating System, and with the Windows 10 Insider Program we can also see some Hyper-V preview features coming to live. Previously we could see feature like Nested Virtualization and more in the Windows client builds before we seen them in the server releases. With Windows 10 Insider Preview build 16215, Hyper-V gets virtual battery support, which means you can now see your machine’s battery state in your VMs. This is especially handy if you run Virtual Machines on your notebook. My guess would be, that this could also be used on server for battery support and automatic shutdown.
To enable the feature inside the Virtual Machine you have to create a Prerelease Virtual Machine using PowerShell.
You can use the following PowerShell command to create a Prerelease Virtual Machine. Please remind yourself that prerelease virtual machines are not supported in production and may fail across updates.
New-VM -Name "Windows10" -MemoryStartupBytes 2048MB -NewVHDPath C:\VMs\Windows.vhdx -NewVHDSizeBytes 127GB -Generation 2 -Prerelease
You can now see that the Virtual Machine now has version number 254.0, which adds some hidden new features like virtual battery support.
My guess is that this could be available automatically per default in all virtual machines in the final version of the Windows 10 Fall Creators Update.Tags: Battery, Fall Creators Update, Hyper-V, Hyper-V Virtual Battery, Microsoft, PowerShell, Virtual Battery, Virtual machines, Virtualization, VM Battery, Windows 10 Last modified: August 27, 2018
Is it possible to enable the virtual battery for the already created VMs? If so, can you tell me how to do it?