Client Management Suite

 View Only
Expand all | Collapse all

Powershell tasks fail when run with Symantec Management Agent credentials

  • 1.  Powershell tasks fail when run with Symantec Management Agent credentials

    Posted Apr 06, 2011 09:39 AM

    I have found that when I run a powershell script task in symanted managment console 7.1 and have it run with symantec managment agent credinetials against a windows 7 client that the powershell process will open on the client but nothing will happen.

    When i set the powershell task to run as current logged on user it executes as it should.

    I have been unable to find any logs relating to the tasks which fail due to a time out with code -1.

    We hope to use powershell as our default scripting language but clearly will need to be able to perform administrative functions for this to work.

    The powershell exectution policy on the client is currently set to unrestricted.

    Can anyone help me understand the problem here?

     

    Thanks



  • 2.  RE: Powershell tasks fail when run with Symantec Management Agent credentials

    Posted Jun 10, 2011 12:30 AM

    I've seen misfired Powershell script tasks as well.  When running as  "Server task" they run as expected.  If you put the same script into a "Client Task" it will timeout.

    In my situation, when I configured the task to display in a window and run as the user, it would open up a new powershell prompt and do nothing until I let the task expire, or closed the window.  If you capture the script output, it will provide an error message implying it couldn't find a specified file.  I found the script in c:\windows\temp\AtrsScriptSOMETHING.ps1. 

    My best guess is that the powershell task in client task mode isn't giving itself the correct path to the powershell script that's generated on the fly during execution.