r/ComputerSecurity • u/shenther • Jan 18 '21
Windows USB login lock
I have seen some videos about yubi keys and I have seen in windows you can have a usb login.
I want to know is their a way I can have a USB that skips the login when plugged in but won't allow a user to login when it is unplugged?
Why? So when I am using my computer I have the USB in and then when I go out or go to bed the computer is useless and if stolen the data is potentially secure.
22
Upvotes
View all comments
Show parent comment
2
u/loadedmong Jan 18 '21
If it's not that serious you could write a powershell script to check drive x (usb drive) for a certain file every minute or so. Then you could even check the contents of that file and compare to a copy of that file on your hard drive.
If they match, do nothing.
If they don't match, there's a lock workstation function if you Google:
Techibee lock workstation
I haven't tried unlocking from powershell when it's found again, but I think it could be done.
Would something like that work?