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 ...
Aug 12, 2025
If the installation fails but the script exits successfully (Exit 0), it will not attempt the installation again. But to troubleshoot, you can add Start-Transcript c:\windows\temp\log.txt to the top of the script and Stop-Transcript at the end of the script. Save and upload the modified script, it will rerun on the devices again, so you might want to limit this to the failing device, and check the log afterwards.
You could also try adding the MSIX as a Line-of-Business-App in Windows Apps instead of using a script.