• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Hyper-V - Don't lock when exiting the VM

Joined
Jul 21, 2008
Messages
5,282 (0.86/day)
System Name [Daily Driver]
Processor [Ryzen 7 5800X3D]
Motherboard [MSI MAG B550 TOMAHAWK]
Cooling [be quiet! Dark Rock Slim]
Memory [64GB Crucial Pro 3200MHz (32GBx2)]
Video Card(s) [PNY RTX 3070Ti XLR8]
Storage [1TB SN850 NVMe, 4TB 990 Pro NVMe, 2TB 870 EVO SSD, 2TB SA510 SSD]
Display(s) [2x 27" HP X27q at 1440p]
Case [Fractal Meshify-C]
Audio Device(s) [Fanmusic TRUTHEAR IEM, HyperX Duocast]
Power Supply [CORSAIR RMx 1000]
Mouse [Logitech G Pro Wireless]
Keyboard [Logitech G512 Carbon (GX-Brown)]
Software [Windows 11 64-Bit]
So trying to get a hyper-v client to stay logged in when I close the window. Currently if I minimize the window it'll stay logged in indefinitely, but if I close the window to let it run in the background it will lock and have me at the user selection screen when I re-open it.

Any way to prevent this from happening? Client running Win11.
 
Last edited:
This is likely W11 locking itself than the hypervisor doing it. With VNC for instance, you can set the local server to lock the machine after the last user disconnects but hyper-v hasn't got a setting as such to adjust this behaviour afaik.

Edit: I just tried with an ubuntu server and a centos vm, both stay where I'd left them upon window close. No such locking action on these at least, but I haven't a windows vm to try right now.
 
This is likely W11 locking itself than the hypervisor doing it. With VNC for instance, you can set the local server to lock the machine after the last user disconnects but hyper-v hasn't got a setting as such to adjust this behaviour afaik.

Edit: I just tried with an ubuntu server and a centos vm, both stay where I'd left them upon window close. No such locking action on these at least, but I haven't a windows vm to try right now.

Kinda figured, I'll have to dig a little and see if I can find the win11 setting causing this
 
Odd. let me know if you find anything. My VMs do not do this but I run Windows server in production. I wonder if this is an added limitation to Windows 11 or Windows 11 in hyper-v itself. I might spin up a new VM later to take a look.
 
Odd. let me know if you find anything. My VMs do not do this but I run Windows server in production. I wonder if this is an added limitation to Windows 11 or Windows 11 in hyper-v itself. I might spin up a new VM later to take a look.

I just tried with a W11 VM and it did indeed went to the lock screen everytime I closed the window. So I tried the group policy setting to never display the lock screen and that didn't work either, weirdly, even though I didn't have a password/pin as well.
 
I just tried with a W11 VM and it did indeed went to the lock screen everytime I closed the window. So I tried the group policy setting to never display the lock screen and that didn't work either, weirdly, even though I didn't have a password/pin as well.

That should happen and happens on the servers as well. He is saying he is being logged OUT though, which is odd to me.

EDIT::

nvm he is using 2 different verbs to explain his issue.


to stay logged in when I close the window. Currently if I minimize the window it'll stay logged in indefinitely, but if I close the window to let it run in the background it will lock and have me at the user selection screen when I re-open it.

These mean two different things. 1 is intended and expected behavior (lock) the other is not intended or expected (logged out)

locking does not equal logging out
 
Last edited:
Sorry meant lock*. Wrote this before my first cup of coffee this morning
 
Back
Top