Hello Pran, My name is Jayshri. I'm an Independent Advisor and I'll be glad to help you today.
Changing the permissions of the WindowsApps folder can cause built-in Windows 10 apps to stop working, but we can fix it by restoring the original permissions without wiping your files or doing a full system restore.
- Take Ownership of the Folder
We need to get control of the folder before we can fix it.
Open Command Prompt as Administrator (search for "cmd", right-click it, and choose Run as administrator).
Type this command and press Enter:
takeown /f "C:\Program Files\WindowsApps" /r /d y
This makes you the owner of the folder, so you can make changes.
- Give Yourself Full Permissions
Now that you own the folder, let's give you full access to make any changes needed.
In the same Command Prompt, type the following and press Enter:
icacls "C:\Program Files\WindowsApps" /grant "%USERDOMAIN%%USERNAME%":(F) /t
This grants you full control over the files inside.
- Reset the Folder Permissions Back to Default
We need to reset everything back to the way Windows originally had it.
To reset the folder's permissions, type the following and press Enter:
icacls "C:\Program Files\WindowsApps" /reset /t /c /q
Then, set the owner back to TrustedInstaller (the default owner for system files):
icacls "C:\Program Files\WindowsApps" /setowner "NT SERVICE\TrustedInstaller" /t /c /q
- Reinstall Apps (if needed)
If some of your apps still don’t work properly, we can try reinstalling the default apps.
Open PowerShell as Administrator (same way you opened Command Prompt).
Run this command to reinstall all the default Windows apps:
Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
- Restart Your Computer
After you've done all of this, restart your computer to make sure all the changes take effect properly.
Try not to change the permissions for WindowsApps again unless absolutely necessary. It can be sensitive and affect how apps work.
You should always back up important data when making big changes, just in case something unexpected happens.
By following these steps, your Windows 10 apps should work like new again!
If anything seems unclear or you run into trouble, feel free to ask for help!
Just a friendly reminder this isn't a live chat, so responses might take a bit longer. I really appreciate your understanding, and I'll do my best to respond as quickly as I can!