[GUIDE] Add Store to Windows 10 EnterpriseS SKU (LTSB/LTSC)

Discussion in 'Windows 10' started by Tito, Aug 9, 2016.

  1. d5aqoëp

    d5aqoëp MDL Senior Member

    Jan 19, 2017
    307
    177
    10
    When you add store to LTSC, after installing store apps, Defender regularly throws up errors that some App has problem. You just have to acknowledge the warning. Very annoying.
     
  2. W7U

    W7U MDL Junior Member

    Feb 19, 2017
    56
    12
    0
    I managed to get the NVIDIA Control Panel to the Start Menu, but I get an error that said: "No applicable app licenses found".

    I wonder how I can get around that error without a Microsoft Account?
     
  3. Santiblocks

    Santiblocks MDL Novice

    Jan 12, 2020
    1
    0
    0
    #943 Santiblocks, Jan 12, 2020
    Last edited: Jan 13, 2020
    (SOLVED)Hey i installed the store with scripts on LTSC but it gives me the 0x80070422 error for all downloads and windows update is definitely running what should i do ?

    Nevermind after reinstalling windows i noticed i was missing the media pack now it works thanks a lot!
     
  4. wasabipham87

    wasabipham87 MDL Novice

    Mar 23, 2017
    16
    1
    0
    #944 wasabipham87, Feb 17, 2020
    Last edited: Feb 17, 2020
    My W10 Enterprise LTSC clean install from built 10.0.17763.1 and update to newest built dont have spotlight in setting lockscreen. What happend? I think problem from always use below GPO settings but no luck from changing. Pls help. Many thanks
    1. Delivery Optimization download mode: bypass (100)
    2. Allow Telemetry: 0-Security(Enterprise only)
    And one more problem. The slidershow lockscreen setting can be set but really not work. The wallpaper folder for it is same with slidershow backgrounds.
     
  5. Dalai Lamer

    Dalai Lamer MDL Novice

    Aug 16, 2016
    8
    0
    0
    @abbodi1406
    I was wondering: would adding the contents of your zip to the $OEM$ folder and calling AddStore.cmd from within the SetupComplete.cmd script work?
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,236
    48,370
    340
    no, the app will not be registered correctly

    you can integrate the appxbundle + license + prerequisites appx into wim file
     
  7. Dalai Lamer

    Dalai Lamer MDL Novice

    Aug 16, 2016
    8
    0
    0
    oh, I see.. thank you
     
  8. migascalp

    migascalp MDL Novice

    Sep 18, 2009
    47
    25
    0
    Another way use HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce to launch the script at the first logon
    It work for me


    Code:
    InstallInRunOnce.cmd
    Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.xml
    Microsoft.DesktopAppInstaller_2019.515.2246.0_neutral_~_8wekyb3d8bbwe.AppxBundle
    Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x86__8wekyb3d8bbwe.Appx
    Microsoft.NET.Native.Framework.2.2_2.2.27405.0_x64__8wekyb3d8bbwe.appx
    Microsoft.NET.Native.Framework.2.2_2.2.27405.0_x86__8wekyb3d8bbwe.appx
    Microsoft.NET.Native.Runtime.1.7_1.7.25531.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.NET.Native.Runtime.1.7_1.7.25531.0_x86__8wekyb3d8bbwe.Appx
    Microsoft.NET.Native.Runtime.2.2_2.2.27328.0_x64__8wekyb3d8bbwe.appx
    Microsoft.NET.Native.Runtime.2.2_2.2.27328.0_x86__8wekyb3d8bbwe.appx
    Microsoft.StorePurchaseApp_8wekyb3d8bbwe.xml
    Microsoft.StorePurchaseApp_11811.1001.1813.0_neutral_~_8wekyb3d8bbwe.AppxBundle
    Microsoft.VCLibs.140.00.UWPDesktop_14.0.27629.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.VCLibs.140.00.UWPDesktop_14.0.27629.0_x86__8wekyb3d8bbwe.Appx
    Microsoft.VCLibs.140.00_14.0.27323.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.VCLibs.140.00_14.0.27323.0_x86__8wekyb3d8bbwe.Appx
    Microsoft.WindowsStore_8wekyb3d8bbwe.xml
    Microsoft.WindowsStore_11905.1001.413.0_neutral_~_8wekyb3d8bbwe.AppxBundle
    Microsoft.XboxIdentityProvider_8wekyb3d8bbwe.xml
    Microsoft.XboxIdentityProvider_12.53.10001.0_neutral_~_8wekyb3d8bbwe.AppxBundle
    MicrosoftStore.bat
    MicrosoftStore.bat:
    Code:
    REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce /v Add-Store /t REG_SZ /d "cmd.exe /c start /min %cd%\InstallInRunOnce.cmd ^& exit" >nul 2>&1 /f
    
    InstallInRunOnce.cmd:
    Code:
    ::[Bat To Exe Converter]
    ::
    ::YAwzoRdxOk+EWAnk
    ::fBw5plQjdG8=
    ::YAwzuBVtJxjWCl3EqQJgSA==
    ::ZR4luwNxJguZRRnk
    ::Yhs/ulQjdF+5
    ::cxAkpRVqdFKZSTk=
    ::cBs/ulQjdF+5
    ::ZR41oxFsdFKZSDk=
    ::eBoioBt6dFKZSDk=
    ::cRo6pxp7LAbNWATEpSI=
    ::egkzugNsPRvcWATEpCI=
    ::dAsiuh18IRvcCxnZtBJQ
    ::cRYluBh/LU+EWAnk
    ::YxY4rhs+aU+JeA==
    ::cxY6rQJ7JhzQF1fEqQJQ
    ::ZQ05rAF9IBncCkqN+0xwdVs0
    ::ZQ05rAF9IAHYFVzEqQJQ
    ::eg0/rx1wNQPfEVWB+kM9LVsJDGQ=
    ::fBEirQZwNQPfEVWB+kM9LVsJDGQ=
    ::cRolqwZ3JBvQF1fEqQJQ
    ::dhA7uBVwLU+EWDk=
    ::YQ03rBFzNR3SWATElA==
    ::dhAmsQZ3MwfNWATElA==
    ::ZQ0/vhVqMQ3MEVWAtB9wSA==
    ::Zg8zqx1/OA3MEVWAtB9wSA==
    ::dhA7pRFwIByZRRnk
    ::Zh4grVQjdCmDJGmW+0UiKRZZSRe+HmquOYET183j6tWkrUMLUfArfZ3kiYirOPQB60bwcJIR/3RJjMoAADJWTAelQQE3rCBHrmHl
    ::YB416Ek+ZW8=
    ::
    ::
    ::978f952a14a936cc963da21a135fa983
    @echo off
    title Microsoft Store
    cd "%~dp0"
    REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce /v remove_Add-Store /t REG_SZ /d "cmd.exe /q /c rmdir /s /q %cd%" >nul 2>&1 /f
    set "SysPath=%Windir%\System32"
    if exist "%Windir%\Sysnative\reg.exe" (set "SysPath=%Windir%\Sysnative")
    set "Path=%SysPath%;%Windir%;%SysPath%\Wbem;%SysPath%\WindowsPowerShell\v1.0\"
    for /f "tokens=6 delims=[]. " %%G in ('ver') do if %%G lss 16299 goto :version
    fsutil dirty query %systemdrive% 1>nul 2>nul || goto :uac
    set "arch=x64"
    if /i %PROCESSOR_ARCHITECTURE%==x86 (if not defined PROCESSOR_ARCHITEW6432 set "arch=x86")
    if not exist "*WindowsStore*.appxbundle" goto :nofiles
    if not exist "*WindowsStore*.xml" goto :nofiles
    ::pushd "%~dp0"
    
    for /f %%i in ('dir /b *WindowsStore*.appxbundle 2^>nul') do set "Store=%%i"
    for /f %%i in ('dir /b *NET.Native.Framework*1.7*.appx 2^>nul ^| find /i "x64"') do set "FK7X64=%%i"
    for /f %%i in ('dir /b *NET.Native.Framework*1.7*.appx 2^>nul ^| find /i "x86"') do set "FK7X86=%%i"
    for /f %%i in ('dir /b *NET.Native.Runtime*1.7*.appx 2^>nul ^| find /i "x64"') do set "RT7X64=%%i"
    for /f %%i in ('dir /b *NET.Native.Runtime*1.7*.appx 2^>nul ^| find /i "x86"') do set "RT7X86=%%i"
    for /f %%i in ('dir /b *VCLibs*140.00_*.appx 2^>nul ^| find /i "x64"') do set "VCPX64=%%i"
    for /f %%i in ('dir /b *VCLibs*140.00_*.appx 2^>nul ^| find /i "x86"') do set "VCPX86=%%i"
    for /f %%i in ('dir /b *NET.Native.Framework*2.2*.appx 2^>nul ^| find /i "x64"') do set "FK2X64=%%i"
    for /f %%i in ('dir /b *NET.Native.Framework*2.2*.appx 2^>nul ^| find /i "x86"') do set "FK2X86=%%i"
    for /f %%i in ('dir /b *NET.Native.Runtime*2.2*.appx 2^>nul ^| find /i "x64"') do set "RT2X64=%%i"
    for /f %%i in ('dir /b *NET.Native.Runtime*2.2*.appx 2^>nul ^| find /i "x86"') do set "RT2X86=%%i"
    for /f %%i in ('dir /b *VCLibs*140.00.UWPDesktop*.appx 2^>nul ^| find /i "x64"') do set "VCDX64=%%i"
    for /f %%i in ('dir /b *VCLibs*140.00.UWPDesktop*.appx 2^>nul ^| find /i "x86"') do set "VCDX86=%%i"
    
    if exist "*StorePurchaseApp*.appxbundle" if exist "*StorePurchaseApp*.xml" (
    for /f %%i in ('dir /b *StorePurchaseApp*.appxbundle 2^>nul') do set "PurchaseApp=%%i"
    )
    if exist "*DesktopAppInstaller*.appxbundle" if exist "*DesktopAppInstaller*.xml" (
    for /f %%i in ('dir /b *DesktopAppInstaller*.appxbundle 2^>nul') do set "AppInstaller=%%i"
    )
    if exist "*XboxIdentityProvider*.appxbundle" if exist "*XboxIdentityProvider*.xml" (
    for /f %%i in ('dir /b *XboxIdentityProvider*.appxbundle 2^>nul') do set "XboxIdentity=%%i"
    )
    
    if /i %arch%==x64 (
    set "DepStore=%FK7X64%,%FK7X86%,%RT7X64%,%RT7X86%,%VCPX64%,%VCPX86%"
    set "DepPurchase=%FK7X64%,%FK7X86%,%RT7X64%,%RT7X86%,%VCPX64%,%VCPX86%"
    set "DepXbox=%FK2X64%,%FK2X86%,%RT2X64%,%RT2X86%,%VCPX64%,%VCPX86%"
    set "DepInstaller=%VCDX64%,%VCDX86%,%VCPX64%,%VCPX86%"
    ) else (
    set "DepStore=%FK7X86%,%RT7X86%,%VCPX86%"
    set "DepPurchase=%FK7X86%,%RT7X86%,%VCPX86%"
    set "DepXbox=%FK2X86%,%RT2X86%,%VCPX86%"
    set "DepInstaller=%VCDX86%,%VCPX86%"
    )
    
    for %%i in (%DepStore%) do (
    if not exist "%%i" goto :nofiles
    )
    
    set "PScommand=PowerShell -NoLogo -NoProfile -NonInteractive -InputFormat None -ExecutionPolicy Bypass"
    
    echo.
    echo ============================================================
    echo Adding Microsoft Store
    echo ============================================================
    echo.
    1>nul 2>nul %PScommand% Add-AppxProvisionedPackage -Online -PackagePath %Store% -DependencyPackagePath %DepStore% -LicensePath Microsoft.WindowsStore_8wekyb3d8bbwe.xml
    for %%i in (%DepStore%) do (
    %PScommand% Add-AppxPackage -Path %%i
    )
    %PScommand% Add-AppxPackage -Path %Store%
    
    if defined PurchaseApp (
    echo.
    echo ============================================================
    echo Adding Store Purchase App
    echo ============================================================
    echo.
    1>nul 2>nul %PScommand% Add-AppxProvisionedPackage -Online -PackagePath %PurchaseApp% -DependencyPackagePath %DepPurchase% -LicensePath Microsoft.StorePurchaseApp_8wekyb3d8bbwe.xml
    %PScommand% Add-AppxPackage -Path %PurchaseApp%
    )
    
    if defined AppInstaller (
    echo.
    echo ============================================================
    echo Adding App Installer
    echo ============================================================
    echo.
    1>nul 2>nul %PScommand% Add-AppxProvisionedPackage -Online -PackagePath %AppInstaller% -DependencyPackagePath %DepInstaller% -LicensePath Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.xml
    for %%i in (%DepInstaller%) do (
    %PScommand% Add-AppxPackage -Path %%i
    )
    %PScommand% Add-AppxPackage -Path %AppInstaller%
    )
    
    if defined XboxIdentity (
    echo.
    echo ============================================================
    echo Adding Xbox Identity Provider
    echo ============================================================
    echo.
    1>nul 2>nul %PScommand% Add-AppxProvisionedPackage -Online -PackagePath %XboxIdentity% -DependencyPackagePath %DepXbox% -LicensePath Microsoft.XboxIdentityProvider_8wekyb3d8bbwe.xml
    for %%i in (%DepXbox%) do (
    %PScommand% Add-AppxPackage -Path %%i
    )
    %PScommand% Add-AppxPackage -Path %XboxIdentity%
    )
    goto :fin
    
    :uac
    echo.
    echo ============================================================
    echo Error: Run the script as administrator
    echo ============================================================
    echo.
    echo.
    echo Press any key to Exit
    ::pause >nul
    exit
    
    :version
    echo.
    echo ============================================================
    echo Error: This pack is for Windows 10 version 1709 and later
    echo ============================================================
    echo.
    echo.
    echo Press any key to Exit
    ::pause >nul
    exit
    
    :nofiles
    echo.
    echo ============================================================
    echo Error: Required files are missing in the current directory
    echo ============================================================
    echo.
    echo.
    echo Press any key to Exit
    ::pause >nul
    exit
    
    :fin
    popd
    echo.
    echo ============================================================
    echo Done
    echo ============================================================
    echo.
    echo Press any Key to Exit.
    ::pause >nul
    exit
    
     
  9. Hammerfest

    Hammerfest MDL Novice

    Sep 6, 2012
    21
    3
    0
    Poking more at this and trying my hand at updating and understanding...
    @abbodi1406 whos the original author? Didnt see it on your GitHub

    I see your update posts and I followed the directions to update what I could find with that category ID, looks like I cant seem to find the rest of the stuff to update, not too worried.
    What I was trying to understand is there are quite a few different github release's from others and the App-Store.cmd seems to differ in each and outside of the easily understood version strings theres quite a few other changes that I am not clear on.

    Any chance you might take a look? Google, and personal testing hasnt yielded that "its doing this dumbass" moment to me...
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,236
    48,370
    340
    @Hammerfest

    i didn't publish any in my github, only here

    App-Store.cmd can and should be updated to accompany new versions of WindowsStore that require new or different versions of appx dependencies, specially the
    NET.Native.Framework & Runtime
     
  11. Hammerfest

    Hammerfest MDL Novice

    Sep 6, 2012
    21
    3
    0
    Yep, I was more talking about the change from checking x64/x86 now to setting x64 but still checking after.
    There are some other steps in the script after each installation that weren't in the earlier checks
    2.1 is still in there despite also having 2.2 (speaking of, i have to run 2x, doesnt seem to install 2.2 properly after 2.1 on the first round), is this on purpose?

    I need to find time to actually cut the text into here I was talking about but time is not on my side for the next few weeks
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,236
    48,370
    340
    The other apps have different dependencies (each NET appx version is unique, 2.2 do not work for 2.1 and vice versa)
     
  13. Hammerfest

    Hammerfest MDL Novice

    Sep 6, 2012
    21
    3
    0
    I get that, its just weird that there was no issue from 1.6 to 1.7, any easy way to tell what is dependent on 2.1?
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,236
    48,370
    340
    Open AppxBundle with 7-zip, then open the main x64 appx inside (bigger one), then check AppxManifest.xml <Dependencies>
     
  15. Hammerfest

    Hammerfest MDL Novice

    Sep 6, 2012
    21
    3
    0
    Cool, then it appears that 2.1 can be removed, not seeing it in the dependencies!

    Side note, how can i find the category ID for the other files in the package?
    Wanting to see if I can finagle an auto updater (also, any need to update any of the 4 xml files in the base package), or at least write a nice how-to guide
     
  16. noway1

    noway1 MDL Novice

    Dec 8, 2019
    10
    2
    0
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,236
    48,370
    340
    @noway1
    cmd and powershell can handle multiple commands from clipboard

    no need for any change
     
  18. TEMPUSER_

    TEMPUSER_ MDL Novice

    Jan 12, 2019
    5
    0
    0
    #958 TEMPUSER_, Mar 12, 2020
    Last edited: Mar 13, 2020
    Thanks abbodi1406 for providing files to restore MSStore, with these I managed to get my store running on Pro version of v1909 Windows 10.
    Only thing I noticed, that restoring Store and few apps works fine while under Administrator account, but when performing same on AD account, Store gets restored (CMD run as another user .\admin), but apps does not.
    When installing appxbundle, does user needs some specific permissions? Because you cannot just simply run these with different user permissions.
    Solved, with internet enabled, AD user's Store constantly tried to get updates and camera app itself, and with antivirus blocking these connections, necessary apps didn't appeared in start menu as available.
    Just turned off internet, and tried to install again, and it worked just fine.
     
  19. erpsterm35

    erpsterm35 MDL Expert

    May 27, 2013
    1,012
    553
    60
    Latest MS store app is recently v12003.1001.1.0 from Microsoft.WindowsStore_12003.1001.113.0_neutral_~_8wekyb3d8bbwe.AppxBundle file
     
  20. Graymanflo

    Graymanflo MDL Novice

    May 14, 2016
    4
    0
    0
    #960 Graymanflo, Mar 28, 2020
    Last edited: Mar 28, 2020
    Hey @abbodi1406.

    Microsoft changed the Netflix app into a .emsixbundle. Do you know how to install this type of file on LTSC 2019? Before it was a .EAppx and that worked fine.

    Just to clarify how I found it, grab the Netflix URL from the Microsoft Store, open up store.rg-adguard.net and paste the URL into the search bar, use URL (Link) and RP channel. Netflix version 8 is the latest for desktop. I usually don't like installing Microsoft Store on my system and I tend to grab the Netflix app manually.