Prevent users from running PowerShell

Hello, we are a school and need to disable users from running PowerShell and Powershell ISE. I have tried doing a prevent powershell.exe Group Policy but that prevents our Powershell logon scripts running.
Any ideas?
Who is Participating?
McKnifeConnect With a Mentor Commented:
Right, you said logon scripts, so indeed, it runs as user. No, then it can't be done. You will need to find another way to deploy settings at logon.
Use software restriction policies or applocker. Both know hash rules and noth can be setup to only run for certain users.
PeteAuthor Commented:
yes we can use SRP but as the logon script runs as the user we are finding powershell logon scripts fail, are we missing a concept of SRP somewhere?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.