Yubikey detector Simple daemon for lock Windows user session if : yubikey is unmount not yubikey on unlock Install You can create a trigger with task scheduler to run daemon on user logon