Who Me Too'd this topic

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Who Me Too'd this topic

powershell.exe as registered executables


I have run out of ideas, may be somebody can help or give any hint. Powersehell.exe is registered executable. I created server task to run external command and using registered powershell and parameters are "-file script.ps1". Then I manually execute that server task, then script is executed twice - second time it is executed with some delay - based on log file, script is creating. Sometime second execution starts quite soon, sometime first run finishes and then second run executes immediately. If I take script and execute that directly from powershell.exe, then it run's only once and produces correct log file.  Script in general executes SQL query, AD queries, sends email and writes status messages to log file. executed as server task, it does everything that, but twice - instead of 2 email messages, it produces 4 and so on. ePO is 5.9.1 

Thanks in advance.

Labels (2)
Who Me Too'd this topic

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community