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
Comments