Hello
Thank you for posting in Q&A forum.
Here are a few steps you can try to troubleshoot:
- Ensure that the path to the CAB files is correct and accessible. The %~dp0 variable should point to the directory where the batch file is located.
- Ensure that the CAB files are correctly named and located in the same directory as the batch file.
- Ensure that the batch file is being run with administrative privileges.
- Ensure that the DISM command is correctly formatted and that the source path is correct. You can try specifying the full path to the CAB files.
- Add logging to capture the output and errors from the DISM command for further analysis:
DISM /Online /Enable-Feature /FeatureName:NetFX3 /All /LimitAccess /Source:"%~dp0" > dism_log.txt
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.