Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 2

How to untick/tick "prevent mcafee services from being stopped" using powershell/cmd

Hi Team,

I need to untick "prevent mcafee services from being stopped" and then perform some operation (stop and start the McAfee related services) and after that I need to tick "prevent mcafee services from being stopped".

I have developed the powershell script for the main operation/process required. But I am unable to find any way to tick/untick "prevent mcafee services from being stopped" using command line.


Please let me know if there is any way to do so using command line cmd/powershell using registry or without registry. ANy way to do so without registry would be preferred.


Thanks & Regards,


1 Reply
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 2

Re: How to untick/tick "prevent mcafee services from being stopped" using powershell/cmd

Hi ankgupta4,

To be honest with you I'm not sure a granular operation such as this is possible with Python.
(I could be wrong, happy to be corrected ...?)

I'd suggest a 'swop' of policy, in this way you stay in control of the device state and action as needed when needed!
One TAG would apply to a policy with the option active the other TAG with the option disabled. Simply move a device or the policy (as you see fit) to a device or group fo devices to change the state of the option.
(examples in the Python script guide) 

ePolicy Orchestrator 5.1.0 Web API Scripting Reference Guide
Product Documentation ID: PD24810

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