首页 > 系统相关 >Windows功能中没有Hyper-V解决

Windows功能中没有Hyper-V解决

时间:2022-11-11 15:33:16浏览次数:38  
标签:功能 Hyper Windows online %% hyper SystemRoot% txt

将以下代码写入文本中并更改后缀名为.cmd的文件并以管理员身份运行

pushd "%~dp0"
 
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
 
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
 
del hyper-v.txt
 
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

标签:功能,Hyper,Windows,online,%%,hyper,SystemRoot%,txt
From: https://www.cnblogs.com/Stars0121/p/16880605.html

相关文章