Skip to main content
Apprentice
August 25, 2026
Question

Power Rule - Hyper-V

  • August 25, 2026
  • 0 replies
  • 4 views

I really bought into “If you can do it in powershell, you can run it in a powerrule” but I’m learning it’s really not that easy. What I want to do: If someone runs the “Hyper-V Manager” console, it automatically will add that user to the hyper-v administrators local group in Windows.

I have a script that adds the user to the group, uploaded it, and targeted it with an app group to run, but it doesn’t do anything. I started looking into power rules more (EPM for Windows core scripting | EPM-WM) but quickly realized, it seems like there are special cmdlets you have to use? It’s very confusing.

If anyone can point me in the right direction, I’d really appreaciate it.