admin管理员组

文章数量:1642939

下面图文说明cmd文件无法执行的解决方法,bat文件同理。

1、修改环境变量

a、创建用户变量 %Path% ,值为 C:/windows/system32

b、修改path 变量,添加 %Path%

2、创建并编辑hyper-v.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

3、经验证,cmd文件可执行了。

本文标签: 文件家庭版batcmd