Skip to content

Instantly share code, notes, and snippets.

@kiler129
Created July 19, 2015 00:20
Show Gist options
  • Save kiler129/58af31f94a24d2d043f0 to your computer and use it in GitHub Desktop.
Save kiler129/58af31f94a24d2d043f0 to your computer and use it in GitHub Desktop.
Wana troll you work colleague? Let's run that script on his computer :) It will lock his workstation in random time intervals.
do
wscript.CreateObject("WScript.Shell").Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation"
Randomize
wscript.sleep Int((1200000-600000+1)*Rnd+600000)
loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment