Client Management Suite

Expand all | Collapse all

PowerShell Tasks on Windows 10

  • 1.  PowerShell Tasks on Windows 10

    Posted 12-28-2017 02:44 PM

    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?

     

    Scott



  • 2.  RE: PowerShell Tasks on Windows 10

    Posted 12-28-2017 10:07 PM

    UAC?

    Don't suppose you can share the script or the error being thrown?



  • 3.  RE: PowerShell Tasks on Windows 10

    Posted 01-02-2018 12:07 PM

    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?



  • 4.  RE: PowerShell Tasks on Windows 10

    Posted 03-28-2018 04:15 PM

    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"