Forum Discussion

keshavsingal's avatar
keshavsingal
Copper Contributor
Oct 06, 2020

PowerShell script deployment from Intune

Hi All,

 

We are deploying powershell script to remove Microsoft store from windows 10 devices. We are using "Scripts" option in Intune. 

Commands are working fine manually but not when deploying as file from Intune. 

One reason I think is because Intune is calling powershell script path with " " and that's not running it properly.

When I tried to run file manually with " " it is not working but with ' ' it is working fine.

Can anyone suggest how I should proceed from here.

  • Without seeing the actual script it's hard to say but you can disable the store natively in Intune without a script.
    • keshavsingal's avatar
      keshavsingal
      Copper Contributor

      SeanMcAvinue I am using below script:

       

      Get-AppxPackage -allusers *WindowsStore* | Remove-AppxPackage

       

      Can you please share native way to remove Store.

Resources