INSTALL MICROSOFT STORE

Installing Microsoft Store on Windows 10 LTSC using PowerShell

  1. Download the Microsoft Store Package:

    • You can download the necessary files from this GitHub repository.
  2. Extract the Package:

    • Extract the downloaded ZIP file to a folder on your system.
  3. Open PowerShell as Administrator:

    • Press Windows + X and select "Windows PowerShell (Admin)".
  4. Navigate to the Extracted Folder:

    powershell

    cd pathtoextractedfolder
  5. Run the Installation Script:

    powershell

    .Add-Store.cmd
  6. Follow the On-Screen Instructions:

    • The script will guide you through the installation process. Make sure to follow the prompts.
  7. IF YOU ENCOUNTER ERRORS

    Steps to Fix the Issue

    1. 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
    2. 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"
    3. Check for Dependencies:

      • Ensure that there are no other dependencies or packages that might conflict with the installation.
    4. Use the Get-AppPackageLog Command:

      • If the issue persists, use the Get-AppPackageLog command to get more details about the error:

      powershell

      Get-AppPackageLog -ActivityID f66dbf9e-88cc-0000-67aa-74f6cc88db01
    5. Restart Your Computer:

      • Sometimes, a simple restart can resolve the issue by clearing any temporary conflicts.

      Steps to Resolve Access Denied Error

      1. Run PowerShell as Administrator:

        • Ensure you are running PowerShell with elevated privileges. Right-click on the PowerShell icon and select "Run as administrator."
      2. 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.
      3. 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![image-20250227230400478](C:UsersSTAFF IoMAppDataRoamingTyporatypora-user-imagesimage-20250227230400478.png)

    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

Leave a Reply

Your email address will not be published. Required fields are marked *