Washington DC Endpoint Management User Group

 View Only
  • 1.  PowerShell 3.0 and Task Servers

    Posted Mar 26, 2013 11:20 PM

    Are there any issues with Powershell 3.0 running on a task server? I am trying to run a "Run on Task Server Task" that is a powershell script against a task server that was upgraded to 3.0 but get the following error:

    <nobr>script errors: </nobr> 'powershell' is not recognized as an internal or external command,
    operable program or batch file.

     

    PowerShell launches just fine on the server manually.



  • 2.  RE: PowerShell 3.0 and Task Servers

    Posted Apr 04, 2013 09:32 PM

    Hi Noodle,

    Could you please execute the command path in this server and post the results here?

    I think this is some Microsoft issue.

    Regards,

    Fábio Sanches



  • 3.  RE: PowerShell 3.0 and Task Servers
    Best Answer

    Posted Apr 07, 2013 09:09 AM

    I got it working after installation you have to reboot. Then launch ISE so it can finish configuration of PowerShell and then reboot again (may just need to restart the Altiris services).

    Now the PS 3.0 function I was trying to use was "Invoke-WebRequest". I would get the following error after the steps above:

    Invoke-WebRequest : The response content cannot be parsed because the Internet
    Explorer engine is not available, or Internet Explorer's first-launch
    configuration is not complete. Specify the UseBasicParsing parameter and try
    again.

    To fix this issue, I had to login to each site server with the Altiris service account and launch IE and go through the initial config. After those steps PS 3.0 behaved as expected.