Hyper-V - The LockOnDisconnect feature

To support me, you can subscribe to the channel, share and like the videos, disable your ad blocker or make a donation. Thank you!

Hello,

A video to introduce Hyper-V’s LockOnDisconnect feature

LockOnDisconnect automatically locks the session when the console is closed in simple mode.

Otherwise, the session remains open and available from a connection in simple session mode.

Code used in the video

# Enable LockOnDisconnect on a machine
Set-VM -Name WM01 -LockOnDisconnect On
# List the LockOnDisconnect configuration on all VMs.
Get-VM | Format-Table -Property Name,LockOnDisconnect

Video : Hyper-V - The LockOnDisconnect feature

Related links