How do install Microsoft Store via Powershell via intune/sccm

Zap Rowsdower 1 Reputation point
2021-07-09T03:44:04.25+00:00

Its a pretty simple question, how do install the Microsoft store via CCM or Intune.

See, for some reason. Our old IT team removed the Store from the current build. I am trying to get co-management setup. I am stuck, I need to be able to install Microsoft Store, in order to install Company portal.

But for the life of me, I can't install the store. I've tried powershell scripts, i've tried packaging a powershell as an app and running that.

I've tried it via intune and CCM. neither work.

Scripts I've tried.

Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

and

Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

Get-AppXPackage -AllUsers -Name Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" -Verbose}

Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} 

PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"

Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"

}

Can someone help me with this? Cos, i've been banging my head against a wall here. And i can't manually go do it to all devices. As there are 4000 plus of them.

Thanks in Advance.

Windows for business Windows Client for IT Pros User experience Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-07-09T04:57:06.673+00:00

    Hi,

    Before your run the powershell script, have you confirmed that your AppX Deployment Service was enabled?

    1. Press WIN + R, type in 'regedit' and and press Enter
    2. Navigate the following path: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AppXSvc
    3. On the right hand double-click on Start
    4. Set it to 3 and press OK

    If the powershell still does not work, please kindly share a screenshot of the error message.

    Thanks,


    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.