Showing results for 
Search instead for 
Did you mean: 
Level 9
Report Inappropriate Content
Message 1 of 1

EEDK - Enable MSMQ on Windows 7, 10


Using EEDK 9.5.2 and ePO I am trying to deploy a batch file which enables MSMQ service on Windows machines, which seems a simple task, but after 23 failed versions I don't know what to try anymore.

The batch runs fine when I run it as administrator manually on the machine, but fails when deployed from ePO (even though I get a "Completed" response in Server Task Log). I can see a "Generic script error" in McAfee Agent Status Monitor.

The batch file is as follows:

@echo off

pushd "%~dp0"

for /f "delims=" %%a in ('cd') do @set SRCDIR=%%a

::Main script



"%comspec%" /c dism /online /Enable-Feature /FeatureName:MSMQ-Container /Norestart /Quiet



"%comspec%" /c dism /online /Enable-Feature /FeatureName:MSMQ-Server /Norestart /Quiet

Exit 0

EEDK screenshot:


I think the batch file isn't run in elevated mode, but as far as I know the SYSTEM account is running the commands and should have administrative privileges.

Any help would be appreciated.



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