I'm trying to push a PowerShell script to my PCs. It works fine on Windows 7, but errors on Windows 10 machines. When I run the same commands locally (with a Domain Admin ID) on the PC it fails as well. But it works fine if I run PowerShell as an Administrator. How do I replicate that in Altiris?
Don't suppose you can share the script or the error being thrown?
Make sure platform and plugin supports your version of Win10.
Please share the thrown error, but I believe it has nothing to do with the PS Execution Policy, right?
run "get-executionpolicy" at an elevated powershell. If it returns "Restricted" that is your problem. There are several ways such as a reg key or policy to reduce the default powershell restriction. You could try to run the script with "powershell.exe -executionpolicy Unrestricted -file c:\temp\nameofpowershellscript.ps1"