Tutorial - How to change where Windows 10 Installs Metro Apps


  1. Posts : 1
    Windows 10 Technical Preview 10049
       #1

    Tutorial - How to change where Windows 10 Installs Metro Apps


    Hello all, I've been a long time lurker and have gotten much advice from this site, so I decided to make an account and give back. I went through the tutorials section (applications section specifically) and noticed that there wasn't instructions posted on how to change the default "Windows Metro Application Store". I was looking around Powershell and figured this out, and it is really quite easy and very valuable if you are one to try to keep stuff off of the C: drive. But anyway, I couldn't figure out how to submit a new tutorial, so I will post the instructions here. If someone wants to move this post, or improve on it, or whatever, thats fine. I just wanted to share some knowledge that I am not 100% has been posted before. Anyway, on to business...

    1. Open Powershell_ISE (or just Powershell) as Administrator

    2. Run "Import-Module -Name appx" to import the PS application module that will do the work.

    3. If you run "Get-AppxVolume", you can see the current, default location for the metro application store. It should be "C:\Program Files\WindowsApps"

    4. You are first going to create a new store, at your desired location on your desired drive. This is easy because performing the command in Powershell creates the directory and sets all the appropriate permissions for you.

    You are going to want to run "Add-AppxVolume -Path "X:\YOUR\PATH"" where X: is your desired location for the new metro application store. After running this, you should see your new folder appear in the location specified. It isn't hidden like the default, but it functions exactly the same. You can hide it yourself if you so desire.

    5. You are now going to want to create a variable to store your new application volume to set it to default. I'm not great in Powershell, so there is probably a better way, but this will work:

    $NewAppStore = (Get-AppxVolume -Path "X:\YOUR\PATH")

    6. Once that's stored in your variable, which you can call whatever you want obviously, you want to run this:

    Set-AppxDefaultVolume -Volume $NewAppStore

    That's it! Now all future application you install from the store should be in this new location, saving space on your default drive!
    You can obviously move already installed applications with other cmdlets in the AppX module, but I won't go into detail exactly how to do that right now.

    I just wanted to share this information as my first post because I love this community and I gain so much knowledge from it all the time, and please forgive me if this has already been posted. I did a search and I didn't find it.

    Take care!
      My Computer


  2. Posts : 1
    10, 8, 7, X
       #2

    I get this error:
    PS C:\WINDOWS\system32> Add-AppxVolume -Path "J:\METROAPPS"
    Add-AppxVolume : A Prerequisite for an install could not be satisfied. (Exception from HRESULT:
    0x80073CFD)
    At line:1 char:1
    + Add-AppxVolume -Path "J:\METROAPPS"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (\\?\Volume{75cf...0-100000000000}:AppxVolume) [Add-AppxVol
    ume], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxVol
    umeCommand

    So it looks like I need to define that volume info but I don't even know what that would be called to google it.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:59.
Find Us




Windows 10 Forums