VBS - Self Writing Shutdown

by iRule in Circuits > Software

37303 Views, 10 Favorites, 0 Comments

VBS - Self Writing Shutdown

shutdown.jpg
this is a cool script that I put together in like 5 mins so here it is .. also please comment ty =] ...

what this script does is it opens cmd, then types 'shutdown -s -f -t 10' ten in makes the computer press enter! it's cool because it looks like the pc has taken control and is shutting down your pc!

please enjoy and comment..
tell me of any bugs or Admin rights.

How It Works

shutdown2.jpg
all this script uses is:

set shellobj = CreateObject("WScript.Shell") :this makes an object .. for later.

shellobj.run "cmd" :this is using the object we have just made and using it to run cmd.

wscript.sleep 2000 :this make it sleep .. here it sleeps for 2000 minisecs ..i think could be smaller.

shellobj.sendkeys "s" : this uses the object to make it type something here it would type the letter 's'.

the code is attached.
!!!!!!!! make sure you name it .vbs not .itsavbs !!!!!!!!!!
hope you like it please comment on it =]

Downloads