Where Customization Begins 

  • Enable/disable Hyper-V in Windows 8 with DISM

  • Windows® Automated Installation Kit (WAIK), Windows System Image Manager (WSIM), Win PE and Windows Assessment and Deployment Kit (ADK) Tutorials are right here.
Windows® Automated Installation Kit (WAIK), Windows System Image Manager (WSIM), Win PE and Windows Assessment and Deployment Kit (ADK) Tutorials are right here.
 #26379  by Neuropass
 25 Apr 2013, 13:10
From an elevated command prompt:

ON-line OS

dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

and

dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All


Off-line OS

dism.exe /image:c:\TEST_FOLDER /Disable-Feature:Microsoft-Hyper-V

and

dism.exe /image:c:\TEST_FOLDER /Enable-Feature:Microsoft-Hyper-V /All

You may find that /All is needed for the /Disable too, but I'm leaving it off with the idea that it'll be quicker if it leaves things in place like the Hyper-V manager, etc.