Here is a Script to activate Hyper-V on Windows 10/11 Home :
Copy the follwonig Text in a Text File, name it hv.bat and run as Admin in cmd
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt
for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hv.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause
Powershell Alternative:
Copy the follwonig Text in a Text File, name it hv.ps1 and run as Admin in cmd
Get-ChildItem $Env:SystemRoot\servicing\Packages\*Hyper-V*.mum | % { dism /online /norestart /add-package:"$($_.FullName)" } dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /All