Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Powershell script to reinstall windows store app not running from PDQDeploy

Created a Package in PDQDeploy that runs a single powershell step consisting of the following command.

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

When I attempt to deploy the package it returns an error code of 0 for successful but the Windows Store App is not installed on the computer. If I run the above command on the computer itself from an administrative powershell prompt the command completes and the windows store app is installed. The computer is running windows 10 version 1703 with WMF version 5.1.15063.413. Any ideas

Thanks

0

Comments

0 comments