?
Solved

Shut down command for Windows 2000 professional

Posted on 2003-02-26
18
Medium Priority
?
473 Views
Last Modified: 2010-04-13
Hi every one,
   I want to know the shutdown command for shutting down windows 2000 professional running system .
 I have posted this question on many other discussion boards. i have always got the reply i already know and which doesnt work for windows 2000 professional
 that is "rundll user.exe,exitwindows"
   This command when executed does nothing and not even returns an error..waiting for someones prompt answer
         Swaroop  
 
 
0
Comment
Question by:gnanaswaroop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 11
  • 5
  • 2
18 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8026469
You are better off using one of the three SHUTDOWN AUTOMATION utilites at the following link

http://www.geocities.com/eecrazyone/crazyone.html


The Crazy One
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8026477
The Windows Resrource Kit has a shutdown utility that comes with the kit. If you have the kit then use that utility.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8026502
http://support.microsoft.com/default.aspx?scid=kb;en-us;317371

Description of the Shutdown.exe Tool
Shutdown.exe uses the following syntax:
shutdown \\computername /l /a /r /t:xx "msg" /y /c

You can use the following switches with Shutdown.exe:
\\computername: Use this switch to specify the remote computer to shut down. If you omit this parameter, the local computer name is used.
/l (Note that this is a lowercase "L" character): Use this switch to shut down the local computer
/a: Use this switch to quit a shutdown operation. You can do this only during the time-out period. If you use this switch, all other parameters are ignored.
/r: Use this switch to restart the computer instead of fully shutting it down.
/t:xx: Use this switch to specify the time (in seconds) after which the computer is shut down. The default is 20 seconds.
"msg": Use this switch to specify a message during the shutdown process. The maximum number of characters that the message can contain is 127.
/y: Use this switch to force a "yes" answer to all queries from the computer.
/c: Use this switch quit all running programs. If you use this switch, Windows forces all programs that are running to quit. The option to save any data that may have changed is ignored. This can result in data loss in any programs for which data is not previously saved.
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Accepted Solution

by:
burneweb earned 90 total points
ID: 8027982
http://www.robvanderwoude.com/index.html
According to the above site, There is no command line shutdown command for windows 2000, only a GUI, which I find hard to believe. There is is one for every other operating system!

Here is my compiliation of other useful windows 2000 Command line commands:

Windows 2000 Command Line Utilities:

DXDIAG.EXE = The DirectX Diagnostic Tool (DXDIAG) is a troubleshooting tool you can use to help determine errors and fixing them. The Display tab of the tool shows your current Display settings, provides tests for both DirectDraw and Direct3D, and allows you to enable or disable hardware acceleration. This tab also displays warning messages if there are any problems.

gpedit.msc = Group Policy editor for the local machine

msiexec.exe = Runs windows installer

Sigverif.exe = Identifies unsigned drivers on your computer

wupdmgr.exe = run windows update from the command line

winrep.exe = Windows report Tool. Gathers system information for support calls.

Ntbackup = Launches backup program from command line

Verifier.exe = Gui Driver program

rundll32 user32.dll,LockWorkStation = locks workstation from the command line

Bring up Add/Remove Programs = appwiz.cpl

Syntax  Description  
Control desktop        Launches the Desktop Control Panel subprogram  
Control color              Launches the Desktop Control Panel subprogram, with the Appearance tab preselected  
Control date/time        Launches the Date/Time Control Panel program  
Control international        Launches the Regional Settings Control Panel subprogram  
Control mouse        Launches the Mouse Control Panel subprogram  
Control keyboard        Launches the Keyboard Control Panel subprogram  
Control printers        Displays the Printers folder  
Control fonts              Displays the Fonts folder  


For Windows 2000:

Syntax  Description  
Control folders              Launches the Folder Settings Control Panel subprogram  
Control netware              Launches the Novell NetWare Control Panel subprogram (if installed)  
Control telephony              Launches the Phone and Modem Options Control Panel subprogram  
Control admintools              Displays the Administrative Tools folder  
Control schedtasks              Displays the Scheduled Tasks folder  
Control netconnections       Displays the Network and Dial-up Connections folder  
Control infrared              Launches the Infrared Control Panel subprogram (if installed)  
Control userpasswords       Launches the Users and Passwords Control Panel subprogram

Net Config Server/Hidden:yes      Hides computer in network neighborhood.

Pathping = The pathping command is a route tracing tool that combines features of the ping and tracert commands with additional information that neither of those tools provides. The pathping command sends packets to each router on the way to a final destination over a period of time, and then computes results based on the packets returned from each hop. Since the command shows the degree of packet loss at any given router or link, it is easy to determine which routers or links might be causing network problems.

ntdsutil.exe = An authoritative restore is a restore operation on a Windows 2000 domain controller in which the objects in the restored directory are treated as authoritative, replacing (through replication) all existing copies of those objects. An authoritative restore is particularly helpful in certain circumstances such as when an Active Directory object is deleted. To perform an authoritative restore, use the Ntdsutil.exe utility.

Spuninst.exe = Uninstalls a previously installed service pack. When you install a service pack, the Update.exe program creates a subfolder called $ntservicepackuninstall$ in the computer's system folder (typically c:\Winnt), which contains the earlier versions of the operating system files that the service pack replaces. You can also uninstall a service pack by using the Add/Remove Programs in control panel as well as any Hotfixes. Some limitations:
      * You cannot uninstall a service pack that you installed using an integrated installation.
      * Don't uninstall a service pack if you installed applications after installing the service pack.
      * If you turn off the automatic backup option for Update.exe, you cannot use the uninstall service pack 2 mechanism and, therefore, cannot uninstall service pack 2.


Slipstreaming : How to extract files from a service pack
To slipstream a service pack into a Windows 2000 distribution share, you must first extract the individual service pack files from the archive in which they are distributed. To do this, run the executible archive file from the command prompt with the x parameter. For Windows 2000 Service Pack 2, the command is as follows:
W2ksp2.exe x
The program then prompts you to choose a directory in which to place the extracted files and subfolders. The service pack release files include an application file called Update.exe in a subfolder called \I386\Update. From the command prompt, run Update.exe with the s parameter and the name of the folder where the windows 2000 distribution share is located, as follows:
Update.exe s:f:\win2kdist

To convert a Fat or Fat32 volume to NTFS from the command line use the following syntax:
Convert {volume} /FS:NTFS /V    (Note: the /V switch runs the command in verbose mode)
So to convert drive C from FAT to NTFS you would type the following command:
Convert C: /FS:NTFS /V



Burneweb
0
 

Expert Comment

by:burneweb
ID: 8028007
http://www.robvanderwoude.com/shutdown.html

This is the link I meant to post

Burneweb
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8029602
Well the article is correct there is no built in command line shutdown funtion. You need a third party utiltiy or the one from the Win2000 Resource kit.
0
 

Author Comment

by:gnanaswaroop
ID: 8034849
The answer to proposed not yet provides a solution to my problem. But i still have a question that if other 3rd party softwares are using something that of the windows.then there should be a command or a tweak that should be doing the shutting down process..
     Any ways thanks for giving someother commands that i also wanted .. thanz to Mr.Burneweb
                            Swaroop
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8035649
I am curious why you accepted burneweb comment when it doesn't address the shutdown at all

>>>But i still have a question that if other 3rd party softwares are using something that of the windows

These utilities one of which I developed uses built in Windows functions called API's and are only accessible programmically and not through the command line. Even the the shutdown utility in XP is still doing it programmically but like the third party utilities they offer a way to use the utility from the command line. In Win2000 there is not a direct means (whether you think there is or not) to shutdown except through a utility which I gave you 4 possible utilities to use. I basically answered your question put you give points to someone who didn't even address how to do it.
0
 

Expert Comment

by:burneweb
ID: 8035803
Let's not get greedy, CrazyOne. Yes, there are 3rd party utilities that will shut down a W2K system but he wanted to use a native command, in which case, there is none. Perhaps he granted me the points because of my generosity in providing other useful W2K Run commands. You have a billion points already, you've proved to everyone that you are truly a computer genius, but let some other dogs get some bones once in a while, oh great one.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8035878
It has nothing to do with greed. It has to do with providing a solution which I did and that is how EE works.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8035909
Your comment provided no solution to the stated question but mine did.

The question
"I want to know the shutdown command for shutting down windows 2000 professional running system "

Then the follow up

"then there should be a command or a tweak that should be doing the shutting down process"

All my comments posted show the work around to this your comment did not.
0
 

Expert Comment

by:burneweb
ID: 8036082
wah!wah!wah! Would you like some cheese with that wine? Sour grapes, Sore Loser, or Spoiled Sport... You're choice.
I could send you a bozo button or a cardboard cookie if that would make you feel better....
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8036137
I think you better learn some proper etique here at EE. This site does not tolerate flaming its members and if you continue to so you risk being suspended from the site.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8036151
Besides you missed the point altoghether. It has nothing to do with the points seeing how it was only 30 points to begin with. Your comment did not address how to work around the stated question now did it?
0
 

Expert Comment

by:burneweb
ID: 8036317
Ok, Ok, enough. Frankly, who cares? It's not a contest. His initial question was  "I want to know the shutdown command for shutting down windows 2000 professional running system." There is none. End of story. Why get a 3rd party program when all you have to do is hit Start/ Shutdown? Seems redundant to me... and to him too, obviously. No hard feelings, let's just move on...
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8036653
Yeah but you can't schedule a shutdown without one of the utilities and that is the presumption I was working from. I agree there is no need for a shutdown coammand usless you are trying to shutdown a remote computer or schedule a shutdown to happen at a specific time. :>)
0
 

Author Comment

by:gnanaswaroop
ID: 8036834
Oh Boy!!
  It seems that there has been a flame fight of wordings between burneweb and the crazyone ..Both of them proved to be techies.. Well first letz keep aside the point value of the question . I thank both of you in helping me giving  much knowledge than i asked for .I have awarded point for Burneweb only because that i know the usage of shutdown command of the resource kit of microsoft and have used it before.. And thankz for crazyone to give me more modes for using the shutdown.exe of the microsoft resource kit..
 and also i am thanking burneweb for his help in clearning my doubt whether there exits a command line statement for windows 2000 professional.. And also i am thanking burneweb for giving more commands than what i have asked for ..
  Thankz for again to both of you for giving me valuable answers..          
                      bye
                          Guns
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 8037851
:>)
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
We are witnesses that everyone is saying that our children shouldn't "play" with a technology because it is dangerous. This article is going to prove that they are wrong.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question