win10无法启动虚拟机

 

(1) 电脑没有Hyper-V

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

(2) 电脑没有gpedit.msc

@echo off

pushd "%~dp0"

dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt

dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt

for /f %%i in (findstr /i . List.txt 2^>nul) do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"

pause

 

win10无法启动虚拟机

上一篇:sql面试题


下一篇:Windows10更新后出现右击文件卡死