In windows search bar type
powershell
Right click on it and select run as administrator.
Copy the command below and paste into powershell (right click to paste into powershell)
get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers
press enter
Copy the command below and paste into powershell (right click to paste into powershell)
start ms-windows-store://pdp/?productid=9MWPM2CQNLHN
Install gaming services and shut down PC.
Run microsoft store app and click (open) microsoft flight simulator.