Vidéos d'aide de Screencast

PowerShell 3.0 and Task Servers

Created: 26 Mars 2013 • Updated: 07 Avr. 2013 | 2 comments
Ce problème a été résolu. Voir la solution.

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:

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

PowerShell launches just fine on the server manually.

Operating Systems:

Commentaires CommentairesAccéder au dernier commentaire

l'image des fabio.sanches

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

l'image des noodleNT

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.

SOLUTION