VMware Horizon Community
shads1031
Contributor
Contributor

Screen Lock After Inactivity

Hello,

What is the preferred method for locking a session after inactivity? On existing physical PCs, this was done by using the screensaver option or setting in Power Options, both of which are not recommended in virtual environments.

I'm interested in how others are handling this, as we don't want users leaving their machines unlocked when stepping away.

Thanks.

0 Kudos
4 Replies
anvr
Enthusiast
Enthusiast

Hello,

We use Idlemonitor for this, after a specific time inactivity (mouse/keyboard input) program 'tsdiscon.exe' executes.

0 Kudos
shads1031
Contributor
Contributor

Does this actually disconnect the session? We are looking to just kick the user back to the Windows Logon screen where they need to enter their password again (just locking the screen). None of the group policies to do this seem to work for us.

0 Kudos
MatthewDay
Enthusiast
Enthusiast

Check out this link:

[SOLVED] Lock screen using Group Policy without setting a screen saver server 2012 - Active Director...

Essentially, you set the screen saver timeout to 10 or 15 minutes via GPO, then set the default screen saver to "None". The VM will lock without activating a screen saver and it will not disconnect the session. The user can simply come back to their machine and Ctrl Alt Delete and enter their password to get back in.

In fact, if you use the VMware OS Optimization Tool, there is a setting in there to tune the screen saver and lock time on the Parent Image for your desktop pool.

0 Kudos
anvr
Enthusiast
Enthusiast

Yes, after 120 minutes tsdiscon.exe executes.

IdleMon.jpg

0 Kudos