Última atualização em 6 de Março, 2021 por Vítor Fernandes.
O Hyper-V, nome de código Viridian. Anteriormente conhecido como Virtualization on Windows Server, é uma tecnologia de virtualização baseada em Hypervisor nativo. O Hypervisor é a plataforma de processamento de virtualização que permite que vários sistemas operacionais compartilhem uma única plataforma de hardware.
wikipedia
A ativação do Hyper-V do Windows requer permissões de administrador. Portanto, sem a execução da linha de comandos em modo administrador não conseguirás executar os passos abaixo!
1 – Verifica a compatibilidade do Hyper-V
No output, compara com o exemplo abaixo (Output 01 e Output 02)
systeminfo
Output 01 (verifique o output abaixo, a partir da linha número 50)
A hypervisor has been detected. Features required for Hyper-V will not be displayed
Host Name: DUPLOCLIQUE OS Name: Microsoft Windows 10 Home OS Version: 10.0.19041 N/A Build 19041 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: duploclique Registered Organization: Product ID: 00326-10000-00000-AA466 Original Install Date: 21/09/2020, 18:30:01 System Boot Time: 26/10/2020, 14:55:00 System Manufacturer: System manufacturer System Model: System Product Name System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: AMD64 Family 23 Model 8 Stepping 2 AuthenticAMD ~4000 Mhz BIOS Version: American Megatrends Inc. 3103, 17/06/2020 Windows Directory: C:\Windows System Directory: C:\Windows\system32 Boot Device: \Device\HarddiskVolume1 System Locale: pt;Português (Portugal) Input Locale: pt;Português (Portugal) Time Zone: (UTC+00:00) Dublin, Edimburgo, Lisboa, Londres Total Physical Memory: 16 315 MB Available Physical Memory: 12 572 MB Virtual Memory: Max Size: 18 747 MB Virtual Memory: Available: 11 977 MB Virtual Memory: In Use: 6 770 MB Page File Location(s): C:\pagefile.sys Domain: WORKGROUP Logon Server: \\DUPLOCLIQUE Hotfix(s): 7 Hotfix(s) Installed. [01]: KB4578968 [02]: KB4561600 [03]: KB4570334 [04]: KB4576754 [05]: KB4577266 [06]: KB4580325 [07]: KB4579311 Network Card(s): 1 NIC(s) Installed. [01]: Intel(R) I211 Gigabit Network Connection Connection Name: Ethernet DHCP Enabled: Yes DHCP Server: 192.168.1.1 IP address(es) [01]: 192.168.1.66 [02]: fe80::c8de:2550:1aa:60c3 [03]: 2001:818:dbe9:e200:9d46:438a:3d1e:b99b [04]: 2001:818:dbe9:e200:c8de:2550:1aa:60c3 Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.
1.1 – Expande a opção Hyper-V e selecione as duas opções
Para que a opção fique ativa, deves reiniciar a máquina após as alterações!
optionalfeatures

Output 02 (verifique o output abaixo, a partir da linha número 50)
Host Name: DUPLOCLIQUE OS Name: Microsoft Windows 10 Home OS Version: 10.0.19041 N/A Build 19041 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: duploclique Registered Organization: Product ID: 00326-10000-00000-AA466 Original Install Date: 21/09/2020, 18:30:01 System Boot Time: 26/10/2020, 14:55:00 System Manufacturer: System manufacturer System Model: System Product Name System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: AMD64 Family 23 Model 8 Stepping 2 AuthenticAMD ~4000 Mhz BIOS Version: American Megatrends Inc. 3103, 17/06/2020 Windows Directory: C:\Windows System Directory: C:\Windows\system32 Boot Device: \Device\HarddiskVolume1 System Locale: pt;Português (Portugal) Input Locale: pt;Português (Portugal) Time Zone: (UTC+00:00) Dublin, Edimburgo, Lisboa, Londres Total Physical Memory: 16 315 MB Available Physical Memory: 12 572 MB Virtual Memory: Max Size: 18 747 MB Virtual Memory: Available: 11 977 MB Virtual Memory: In Use: 6 770 MB Page File Location(s): C:\pagefile.sys Domain: WORKGROUP Logon Server: \\DUPLOCLIQUE Hotfix(s): 7 Hotfix(s) Installed. [01]: KB4578968 [02]: KB4561600 [03]: KB4570334 [04]: KB4576754 [05]: KB4577266 [06]: KB4580325 [07]: KB4579311 Network Card(s): 1 NIC(s) Installed. [01]: Intel(R) I211 Gigabit Network Connection Connection Name: Ethernet DHCP Enabled: Yes DHCP Server: 192.168.1.1 IP address(es) [01]: 192.168.1.66 [02]: fe80::c8de:2550:1aa:60c3 [03]: 2001:818:dbe9:e200:9d46:438a:3d1e:b99b [04]: 2001:818:dbe9:e200:c8de:2550:1aa:60c3 Hyper-V Requirements: VM Monitor Mode Extensions: Yes Virtualization Enabled In Firmware: No Second Level Address Translation: Yes Data Execution Prevention Available: Yes
1.2 – Ativa o pacote Hyper-V do Windows
Para que a opção fique ativa, deves reiniciar a máquina após as alterações!
dir /b %systemroot%\servicing\packages\*hyper-v*.mum >C:\Users\%UserName%\Desktop\hyper-v.txt & for /f %i in ('findstr /i . C:\Users\%UserName%\Desktop\hyper-v.txt') do dism /online /norestart /add-package:"%systemroot%\servicing\packages\%i" & dism /online /norestart /enable-feature /featurename:microsoft-hyper-v-all /limitaccess /all && del /s /q "C:\Users\%UserName%\Desktop\hyper-v.txt"
2 – Adicione os atalhos do Hyper-V no ambiente de trabalho
Utiliza esta opção após reiniciares a máquina. Caso contrário, o comando não encontrará os atalhos!
if exist "C:\Program Files\Hyper-V\VMCreate.exe" ( for %i in ( "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Hyper-V Manager.lnk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\VMCreate.lnk" ) do copy %i /y "C:\Users\%UserName%\Desktop" )