Results 1 to 4 of 4

Thread: Shut Down win2k in command line

  1. #1
    Senior Member
    Join Date
    Oct 2003

    Shut Down win2k in command line

    I cant something that i could use to shut down my PC in command line or bat file.

    I tried:

    %windir%\system32\RUNDLL32.EXE shell32,SHExitWindowsEx 0

    But it doesnt work and i dont know why. I have foud lot of pages about this but no one work and all have same problem:

    Missing entry:SHExitWindowsEx

    On microsoft page
    http://<br /> <a rel="nofollow" hre....asp</a><br />
    was just vaues that rundll32 using and nothing more that i found.

    Can someone help me to shutdown PC with rundll32 in windows 2000?

  2. #2
    Elite Hacker
    Join Date
    Mar 2003
    Try this: %windir%\system32\TSSHUTDN.EXE 0 /DELAY:0 /POWERDOWN
    or shutdown -s

    also try putting a 1 or a 5 at the end instead of 0, and a 2 or a 6 for reboot(I mean to the end of what you posted not me). The higher numbers are to force and the other ones are just normal.

    what I first said worked for me on XP, but what you entered plus my addons didn't work. Did you try using the shutdown command, just type shutdown -s -t 0, and it should shutdown.

  3. #3
    Senior Member
    Join Date
    Oct 2003
    Dont working, I havent this file TSSHUTDN.EXE
    // too far away outside of limit

  4. #4
    AO Curmudgeon rcgreen's Avatar
    Join Date
    Nov 2001
    Windows 2000 (with the Resource Kit installed) and Windows XP (natively) have an actual shutdown command that can be launched from a command prompt and which, therefore, also can be launched from a shortcut. To see all available options for this command, click Start, click Run, and type:


    So, it looks like you need the Resource Kit to upgrade and get the cool new shutdown command.

    also see

    I came in to the world with nothing. I still have most of it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts