Windows 11安装Hyper-V

简介: Windows 11安装Hyper-V

一、新建bat文件

将下属代码,保存到桌面xxx.bat

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
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
pause

二、运行bat文件

重启计算机

目录
相关文章
|
16小时前
|
消息中间件 存储 Kafka
Kafka 2.13-3.7.0 在 Windows 上的安装与配置指南
Kafka 2.13-3.7.0 在 Windows 上的安装与配置指南
2 0
|
1天前
|
Dart 开发工具 Android开发
在 Windows 操作系统上安装和配置 Flutter 开发环境
在 Windows 操作系统上安装和配置 Flutter 开发环境
7 0
|
3天前
|
Linux 虚拟化 Docker
Docker在windows安装(Win11,docker20.10.23)
Docker在windows安装(Win11,docker20.10.23)
24 0
|
3天前
|
Windows
zookeeper-3.8.0安装(Windows)
zookeeper-3.8.0安装(Windows)
13 0
|
4天前
|
Linux Windows
windows和linux安装Erlang
windows和linux安装Erlang
25 0
|
4天前
|
应用服务中间件 nginx Windows
如何优雅的安装nginx并启动--windows
如何优雅的安装nginx并启动--windows
15 0
|
4天前
|
应用服务中间件 Docker Windows
windows基于Docker安装并启动Tomcat(解决404)
windows基于Docker安装并启动Tomcat(解决404)
32 1
|
10天前
|
关系型数据库 MySQL 数据库
【条理清晰】在 Windows 上安装 MySQL
【条理清晰】在 Windows 上安装 MySQL
28 0
|
11天前
|
JavaScript iOS开发 开发者
pnpm的安装与配置(Windows/macOS)
pnpm的安装与配置(Windows/macOS)
46 0
|
1月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)