Forum Discussion
AvitSoni
Aug 11, 2025Copper Contributor
PowerShell scripts not delivering to Windows devices
Hello Everyone, I am trying to push a powershell script from Intune through the Scripts option in Devices and it is working for some devices but not on all the devices. We want to install a msix ...
ayla74108
Aug 12, 2025Copper Contributor
Hi AvitSoni,
Thanks for sharing the details of your issue. Since the script works fine when run manually but not through Intune on all devices, it might be related to device-specific policies, execution policies, or user context in Intune.
Here are a few things you could check:
Verify that the devices where the script fails have the correct PowerShell execution policy set to allow the script to run.
Make sure the script runs in the system context if needed, not just user context.
Check if there are any Intune compliance policies or restrictions blocking script execution on some devices.
Review Intune’s script logs on the affected devices for errors or hints.
Hope this helps! Let me know if you need assistance with any of these steps.