cancel
Showing results for 
Search instead for 
Did you mean: 

powershell.exe as registered executables

Jump to solution

Hello,

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)
1 Solution

Accepted Solutions

Re: powershell.exe as registered executables

Jump to solution

Had the same issue (ePO 5.9).  Looks to be resolved in ePO 5.10.

On a related note, if someone also comes across it, for powershell as registered executable running as a domain user (but local admin on ePO server) was getting error:

Command failed [Command: Powershell <powershell script.ps1>] [Return Code: 1058] [Output: Error creating process! The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. ]

Resolution was to start "Secondary Logon" service (and set it to auto start). (Admin group already had 'Log on as a batch job' user right, which is also required)

View solution in original post

3 Replies
cdinet McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 4

Re: powershell.exe as registered executables

Jump to solution

I apologize for the delay in answering.  Did you ever get this resolved?  If not, please open a ticket with McAfee so we can look at logs to figure out why it is doing this.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Re: powershell.exe as registered executables

Jump to solution

Had the same issue (ePO 5.9).  Looks to be resolved in ePO 5.10.

On a related note, if someone also comes across it, for powershell as registered executable running as a domain user (but local admin on ePO server) was getting error:

Command failed [Command: Powershell <powershell script.ps1>] [Return Code: 1058] [Output: Error creating process! The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. ]

Resolution was to start "Secondary Logon" service (and set it to auto start). (Admin group already had 'Log on as a batch job' user right, which is also required)

View solution in original post

Highlighted
cdinet McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 4 of 4

Re: powershell.exe as registered executables

Jump to solution

Thanks for sharing that info!

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

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