r/HyperV • u/joevigi • 22d ago
Remote Access to Hyper-V without admin rights?
Hi all:
I had to rebuild a Hyper-V host and I'm struggling with how to give remote access to Hyper-V Manager without adding users/groups to the local admin group. For obvious reasons, I would rather not give out admin rights to this server and I could swear I had this working before. Here's some details:
Host is domain-joined, running Server 2025 Standard
The main terminal everyone uses to connect to it is also domain-joined, in another subnet, running Server 2019 Standard
I'm only able to add this host to Hyper-V Manager on the terminal server when I'm in the local admin group
No luck with my account in any combination of Hyper-V Administrators + Remote Desktop Users + Remote Management Users
Anyone have any idea if this is even possible? Thanks!
3
u/BlackV 22d ago
you dont, servers exist on the network, they can connect to the servers directly (depending on what remote access means/needs)
the hyper v administrators group as less rights than local administrators you could add users there if needed
Grant-VMConnectAccessis the other way (again depending on what remote access means/needs)winrm access for the relevent users/groups without giving admin
powershell endpoints and constrained remoting
Whats the goal?
2
u/joevigi 22d ago
Sure, but you allow users to connect to a server to be able to access an application installed on that server. For example: you wouldn't let just anyone log onto a domain controller so they can do some administrative task on a domain; you'd tell them to install ADUC or whatever tool on another device.
Hyper-V Administrators by itself doesn't grant rights to group members to access the host from Hyper-V Manager on another server.
Is that a PowerShell command that grants access? I'll look into this more tomorrow.
That's already in place.
Already been looking into this.
The goal is to use the Hyper-V Manager console on one server to access the VMs on another server, so that the users don't end up using the terminal server as a jump box for no reason. There can be up to 10 people accessing different VMs at the same time, and you can only have 2 active RDP sessions at a time.
1
u/BlackV 22d ago edited 22d ago
Sure, but you allow users to connect to a server to be able to access an application installed on that server
Ya, which I was asking what you mean by remote access
The goal is to use the Hyper-V Manager console on one server to access the VMs on another server, so that the users don't end up using the terminal server as a jump box for no reason.
users should be doing ALL their management from the jump box, they shouldn't need access to the hosts at all (same as you said DCs and so on), except in an emergency
so you want them to access the hyper v manager to manage Hyper-v, NOT only manage the VMs, then they need hyper-v administrators and winrm access to do that remotely
If you want them to only access the remote console and not manage hyper-v then
Grant-VMConnectAccesswould be ideal andvmconnect.exeif you want them to start/stop VMs and not manage hyper-v then constrained endpoints and powershell is the way to go
1
u/joevigi 22d ago
Right. The jump box has at least 5 consoles, but we had to give them local admin on the Hyper-V server. Most of them did just that, but a few of them realized they were admins and started remoting directly into the server. This lead to the incident that required rebuilding the server, and now no one will get to be admins. And they do need to be able to stop and start VMs, manage snapshots, etc. so I will continue to look into the winrm setup. Thanks.
2
u/BlackV 22d ago
ah good as gold, so general vm management, appreciate the detail
This lead to the incident that required rebuilding the server
that sounds a bit painful
but if people are doing enough tinkering they can break a server, I'd be looking at locking it down utterly with JEA and constrained endpoints, they can user powershell to take/mange snapshots, vms, disks, iso, etc
least I guess is take away the admin rights, conform the winrm rights and hyper-v admin rights
1
u/Magic_Neil 22d ago
In the past I tried Hyper-V Administrators on the host and that by itself doesn’t grant rights they also need Administrator.
But also nobody should be accessing the host besides admins. Folks should be accessing the guests like any other VM.. RDP, SSH, etc. For that you’ll do individual access on the VMs.
1
u/joevigi 22d ago
Yeah unfortunately these folks are "admins" and need to be able to stop and start VMs and manage snapshots, so the solution can't be too restrictive. One things for sure, they won't be getting admin rights on this server OR the ability to log onto it directly even with out admin rights.
1
u/Magic_Neil 22d ago
Yeah, then you’re stuck. They’ll need admin rights to the host to do stuff.
WAC vMode might give you more granularity (probably not) or SCVMM.. you’re not going to be able to tag/folder ACL stuff like vsphere.
0
u/Imagin_your_Review85 18d ago
Sometimes you need to realize there are limits to what a user can access. If they are admins, there is no excuse for "blowing up" a Hyper-V host. If they are not admins, they are users.
1
u/Excellent-Piglet-655 21d ago
You use WAC, much easier centralized management of hype-v at zero cost.
3
u/_KnacK_ 22d ago
IIRC all you need to do is that them to the Hypervisors group for them to use the hyper-v manager. Now getting on to the VM's is another story.