问题描述
我有一个批处理文件,用于使用DISM命令启用功能
调用Dism / NoRestart / online / Enable-Feature / FeatureName:xxx。
echo ####错误:%errorlevel%
------------------------- ----------------
在脚本上方运行时,失败并显示错误,如下所示。
部署映像服务和管理工具
版本:10.0.14393.0
$
图像版本:10.0.14393.0
错误:0x800f080c
功能名称xxx未知。
无法识别Windows功能名称。
使用/ Get-Features选项查找图像中功能的名称,然后再次尝试命令。
-------------------------------------------------- --------------------------------
我试图用 检查失败;%ERRORLEVEL%。但是它没有得到错误的错误在%errorlevel%
>
是否有可能,或任何其他方式处理DISM错误。
提前致谢。
有问候,
Arun
i have a batch file for enabling features using DISM commands
call Dism /NoRestart /online /Enable-Feature /FeatureName:xxx.
echo #### Error:%errorlevel%
-----------------------------------------
while running above script , its failed and display error as like below.
Deployment Image Servicing and Management tool
Version: 10.0.14393.0
Image Version: 10.0.14393.0
Error: 0x800f080c
Feature name xxx is unknown.
A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and try the command again.
----------------------------------------------------------------------------------
I tried to check the failure with %errorlevel%. But its not getting 0x800f080c error in %errorlevel%
Is it possible, or any other way to handle DISM errors .
Thanks in Advance.
With Regards,
Arun
这篇关于未在%ERRORLEVEL%批处理文件中获取DISM命令失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!