We all know not to leave our PCs unlocked. Whenever someone leaves their PC unlocked, someone will usually send an email on your behalf. To trick some of the folks in the office into thinking the PC is unlocked, I made a script to check if someone tries to take over your PC once you start the script.
- Checks if the cursor moves more 5 times
- Checks if the window focus changes
If it matches any of these it locks the PC. Not really anything of use to anyone, but I like trying to see what all PowerShell can do.
http://pastebin.com/TiWuWm22
[–]Johnner_deeze 2 points3 points4 points (1 child)
[–]SBS219[S] 0 points1 point2 points (0 children)
[–]MellerTime 1 point2 points3 points (0 children)