how do you restart windows 2000 from the command prompt?

josphII

Banned
Nov 24, 2001
1,490
0
0
found it:



@ECHO OFF & cd/d %temp% & echo [version] > {out}.inf
(set inf=InstallHinfSection DefaultInstall)
echo signature=$chicago$ >> {out}.inf
echo [defaultinstall] >> {out}.inf
rundll32 setupapi,%inf% 1 %temp%\{out}.inf
del {out}.inf
 

FUBAR

Senior member
Oct 11, 1999
618
0
0
I'd tell you direct but I can't remember.

do a search in this forum... that exact question was asked less than a week ago.



search before asking...
 

josphII

Banned
Nov 24, 2001
1,490
0
0
as a matter of fact i did search and found nothing. how about you find the link then post it here. from what i gather creating a shortcut to restart (or restarting from the command prompt) is much more difficult in win2k than in win98/Me/Xp

if you find a way to do it that is easier/shorter than what i posted then PLEASE post it
 

Daniel

Diamond Member
Oct 10, 1999
3,813
0
76
Isn't there supposed to be something in the win2k resource kit for just that?
 

NogginBoink

Diamond Member
Feb 17, 2002
5,322
0
0
Yes, the easiest is to use shutdown.exe from the resource kit. (For some reason someone thought this was worth a KB article. Check out Q317371.) Shutdown.exe is in my system32 folder. I don't know how it got there, though, so it may or may not be part of the OS and/or a service pack.

Or, compile a small .exe that calls ExitWindowsEx();

-Noggin