![]() |
|
|
#1 (permalink) |
|
Lost
Location: Florida
|
Need help ASAP! Program to reboot someone's comp?
To cut a long story short I need something I can send to someone, and when they open it, it reboots their comp. I made a progam that did this in Autoit, but now I redownlaoded autoit, and none of the functions work it seems. Need this ASAP!
*Edit* I made my own. That was stinky.. if anyone needs a guaranteed comp rebooter file, let me know and I'll send it over AIM only. Last edited by Munku; 05-19-2004 at 05:30 PM.. |
|
|
|
|
#2 (permalink) |
|
I am Winter Born
Location: Alexandria, VA
|
Well, the simplest plan is a batch file or something that simply calls "shutdown" with the appropriate command line options on a Win2k/XP box.
Failing that, you could always do something more esoteric like writing a C/C++ app that calls the system API for rebooting.
__________________
Eat antimatter, Posleen-boy! |
|
|
|
|
#4 (permalink) |
|
Devils Cabana Boy
Location: Central Coast CA
|
i've looked into it for 2k and i have not found anything that can do it from a command line.
__________________
Donate Blood! "Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen |
|
|
|
|
#5 (permalink) |
|
Psycho
Location: Boston, MAss., USA
|
For Win2k, there is a shutdown exe program that's included in the Resource Kit, might be able to do what you want.
There's also psShutdown from Sysinternals.com which wil do the same thing.
__________________
I'm gonna be rich and famous, as soon I invent a device that lets you stab people in the face over the internet. |
|
|
|
|
#6 (permalink) |
|
"Officer, I was in fear for my life"
Location: Oklahoma City
|
Reboot script, copy the following into notepad or something and save it as a .vbs file. This will reboot a machine when executed.
Code:
' Copyright (c) 1997-1999 Microsoft Corporation
'***************************************************************************
'
' WMI Sample Script - System reboot (VBScript)
'
' Invokes the Reboot method of the Win32_OperatingSystem class
' NOTE: You must have the Shutdown privilege to successfully invoke the Shutdown method
'
'***************************************************************************
Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.Reboot()
next
|
|
|
| Tags |
| asap, comp, program, reboot |
|
|