Auto shutdown of Win2000

Hi,
When I use to run Win98 or ME, if I made a desktop icon with this line in it,

rundll32.exe shell32.dll,SHExitWindowsEx 5

if I clicked the Icon Windows would automatically shut down, same as if I hit the Start/Shut Down/Shutdown button

Doesnt work in Win2000, anyone know of an equivilent ?

Thanks in advance,
Cheers
 
autoshut down

Try this

For win98/ME
c:\windows\rundll.exe user.exe,exitwindows

(There's a space between rundll.exe and user.exe)

For win2K
c:\winnt\system32\rundll32.exe user.exe,exitwindows

don't work
 
Last edited:
Shutdown

a new *.vbs file is the solution!

insert in a text file and rename to *.vbs:

set osh = wscript.CreateObject("wscript.Shell")
osh.Sendkeys "^{ESC}{UP}{ENTER}{HOME}{DOWN}{ENTER}"
 
Sorry guys, Shutdown lets me log off Admin mode but wont actually shut it down

the *.VBS file ends up being associated with a Movie Player and naturally wont run. What program should be associated with it to actually run it ?
 
VBS file

Directory Options > File Types > VBS > Extended:

-----------------------------------------------------------------------------------
VBS = script file for VBScript (Visual Basic Script)

Open = C:\WINNT\System32\WScript.exe "%1" %*
Open2 = C:\WINNT\System32\CScript.exe "%1" %*
Edit = C:\WINNT\System32\Notepad.exe %1
-----------------------------------------------------------------------------------

% should be percent and not 96 :confused:

take a try :)
 
Last edited:
to create a shutdown shotcut on the desktop:

Right click on an open area of the desktop
Select New / shortcut
Enter in "shutdown -s -t 00"
Press the next button
For the name enter in anything you like. I just use shutdown. Click on Finish Button.

*For a reboot, enter "shutdown" -r -t 00" (no quotes)
*For a logoff, enter "shutdown" -1 -t 00"

-s for logoff current user
-r for reboot
-1 for logoff

I got this off the net
 

Attachments

Top