This command will ask your Windows 10 to rebuild some system apps settings and therefore fix the issue if you cannot right click on taskbar icons or press Windows + P for switching display.
Open powershell
in admin mode and run the follow script:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}