2 Copy and paste the command you want to use into the elevated command prompt, and press Enter. (see screenshots below)
(Install)
DISM /Online /Add-Capability /CapabilityName:App.WirelessDisplay.Connect~~~~0.0.1.0
OR
(Uninstall)
DISM /Online /Remove-Capability /CapabilityName:App.WirelessDisplay.Connect~~~~0.0.1.0
3 When the operation completed successfully, you can close the elevated command prompt if you like.