Installing Microsoft Store on Windows 10 LTSC using PowerShell
-
Download the Microsoft Store Package:
- You can download the necessary files from this GitHub repository.
-
Extract the Package:
- Extract the downloaded ZIP file to a folder on your system.
-
Open PowerShell as Administrator:
- Press
Windows + Xand select "Windows PowerShell (Admin)".
- Press
-
Navigate to the Extracted Folder:
powershell
cd pathtoextractedfolder -
Run the Installation Script:
powershell
.Add-Store.cmd -
Follow the On-Screen Instructions:
- The script will guide you through the installation process. Make sure to follow the prompts.
-
IF YOU ENCOUNTER ERRORS
Steps to Fix the Issue
-
Uninstall the Existing Package:
-
Open PowerShell as an administrator.
-
Run the following command to uninstall the existing package:
powershell
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackage -
-
Install the New Package:
- After uninstalling the existing package, try installing the new package again:
powershell
Add-AppxPackage -Path "pathtoMicrosoft.VCLibs.140.00_14.0.26706.0_x64__8wekyb3d8bbwe.appx" -
Check for Dependencies:
- Ensure that there are no other dependencies or packages that might conflict with the installation.
-
Use the Get-AppPackageLog Command:
- If the issue persists, use the
Get-AppPackageLogcommand to get more details about the error:
powershell
Get-AppPackageLog -ActivityID f66dbf9e-88cc-0000-67aa-74f6cc88db01 - If the issue persists, use the
-
Restart Your Computer:
- Sometimes, a simple restart can resolve the issue by clearing any temporary conflicts.
Steps to Resolve Access Denied Error
-
Run PowerShell as Administrator:
- Ensure you are running PowerShell with elevated privileges. Right-click on the PowerShell icon and select "Run as administrator."
-
Check Permissions:
- Verify that you have the necessary permissions to access the folder. You can do this by navigating to the folder in File Explorer, right-clicking on it, selecting "Properties," and then checking the "Security" tab.
-
Take Ownership of the Folder:
- If you don’t have the necessary permissions, you can take ownership of the folder:
powershell
takeown /f "C:Program FilesWindowsAppsMicrosoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe" /r /d y icacls "C:Program FilesWindowsAppsMicrosoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe" /grant administrators
-
TAKING OWNERSHIP OF MICROSOFT APPS FOLDER
Take Ownership of the Folder:
-
If you don’t have the necessary permissions, you can take ownership of the folder:
powershell
the below is the correct COMMAND
takeown /f "C:Program FilesWindowsAppsMicrosoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe" /r /d y icacls "C:Program FilesWindowsAppsMicrosoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe" /grant administrators:F /t
Run CHKDSK:
-
Open Command Prompt as an administrator.
-
Run the following command:
cmd
chkdsk C: /r -
This will check for and repair any disk errors. You may need to restart your computer for the scan to complete.
Use DISM Tool:
-
Open Command Prompt as an administrator.
-
Run the following commands one by one:
cmd
DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /RestoreHealth
