Add-WindowsCapability might fail in some scenarios in SCCM environments. Try the following to workaround the issue RSAT feature list
Tag Archives: DISM
WinPE commands
Reboot with in WinPE wpeutil reboot Mount Image for servicing Dism /Mount-Wim /WimFile:”G:\DeploymentShare\Operating Systems\ED\ED.wim” /index:1 /MountDir:G:\wim-mount Inject drivers offline DISM /image:G:\wim-mount /Add-Driver /driver:C:\79oi22ww /recurse Commit wim changes Dism /Unmount-Wim /MountDir:G:\wim-mount /Commit Compress DSIM serviced image imagex /export “G:\DeploymentShare\Operating Systems\ED\ED.wim” 1 c:\ED.wim /compress maximum