Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7
Report Inappropriate Content
Message 1 of 5

Block Powershell

I recently received a request from our windows admins to block powershell on a few servers.  My question is, can that be done using access protection?  I have tried using the path, the executable, neither seems to work, any ideas if this is even possible?

4 Replies
Level 16
Report Inappropriate Content
Message 2 of 5

Re: Block Powershell

I've tried setting a user-defined rule under access protection and it worked for me but only using full path instead of %systemroot%




Re: Block Powershell

Hi there.

Must you use McAfee*something?

Cant you create a software restriction policy like in the attached images?

You can do it by path (%systemroot% bla bla ) and also by hash, so you could re-enforce it(if I may say so).

I did a test with write.exe and it seems to work the way I think you want...

Take care...


Re: Block Powershell

I am unsure if that is a long term fix for servers. There are a lot of functions within servers (especially 2012) that just won't work without it. You might be able to block PS but that might prevent any type of change.

It might be safer to remove PS from servers instead. That way Windows is aware is missing and will gracefully stop.

Long term using Application Control is definitely a better solution.

Re: Block Powershell

My first question would be why do they need to block PS? I would assume it has to do with not allowing anyone from running tasks with it. If that is the case, using McAfee to restrict an intergral Microsoft system on a Microsoft server or workstation is best managed using the Microsoft tools such as a security policy, GPO or system ACLs.

This is like creating a wheel and then having to create a wedge to stop the wheel from rolling.

Message was edited by: sdelvecchio on 7/6/13 8:16:50 PM CDT
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