I used to deploy .ps1 files from SMS 2003 successfully using the following command:
powershell -command .\script.ps1
unfortunatly its just failing after the allowed elapsed time specified in application. I have the script execution policy set on the machine as RemoteSigned. I have read the following blog about deploying to x64 and powershell referancing SysWoW64.
If i run the command remotly from my machine it works fine. But deploying from SCCM isnt.. I have tried changing the execution policy in the command to:
powershell.exe -executionpolicy bypass -file .\script.ps1 and still doesnt work...
Has anyone got any experiance with deploy powershell scripts through sccm?