The Troubleshooter runs automatically unless you have User Account Control enabled, but it can disable that for you. Scroll down to the Windows Store Apps troubleshooter and click on Run the Troubleshooter. Go to Start > Settings > Updates & Security > Troubleshoot.
While it might seem like an obvious solution, the Windows Store Apps Troubleshooter can often find and fix your problem. If you visit the Microsoft Store to download apps or games but find the install button us grayed out and you can't click on it, here are the steps you can try, gathered from the Microsoft Community.ġ: Run the Windows Store Apps Troubleshooter