Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   Need help ASAP! Program to reboot someone's comp? (https://thetfp.com/tfp/tilted-technology/56198-need-help-asap-program-reboot-someones-comp.html)

Munku 05-19-2004 05:14 PM

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.

Pragma 05-19-2004 05:39 PM

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.

Munku 05-19-2004 05:54 PM

I just used AutoIt v. 3 :P

Dilbert1234567 05-19-2004 07:28 PM

i've looked into it for 2k and i have not found anything that can do it from a command line.

JohnnyRoyale 05-20-2004 03:19 AM

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.

hrdwareguy 05-20-2004 06:15 AM

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


rubicon 05-20-2004 10:34 AM

Go to SysInternals web site and download the PSTools. There is a freeware tool called "psshutdown" that can be used from the CLI.


All times are GMT -8. The time now is 09:40 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73