Venerable system administrators around the world prefer to use the command line.Psychological reasons - to feel their superiority over normal user, no matter how it was corny.But there is a real need - the command line gives you much greater flexibility in the management of the system.
It would seem that this statement applies only to systems Linux, where the control command line - the most developed and the traditional way.But this stereotype.After the Windows NT-based features many of the administration tools that Unix, only the team called a little differently.For example, if a reboot from the command line in Linux can be done by a simple reboot, it is necessary to type in Windows command with parameters.
There is not even a way to "ask" the system reboot!The most obvious - Using shutdown.exe.A simple restart using it done so - shutdown -r -t 0. This means ordering system to reboot immediately.Numerous parameters, the purpose of which details can be found by running the shutdown command with the "-?", Allows the user to display a sign warning.For example, a variation of the teams 60 shutdown.exe -r -t -c.Preventive restart in 60 seconds to put that sign on the screen and create a slight delay in one minute, which allows the user to store documents.It should be noted that the comment is limited - you can set a maximum of 127 characters.
Restart from the command line can be started with a key "-f", then the application will be terminated without warning.Often there is a situation when you're on the go wondering whether to reboot the PC.It is not too late - enter the shutdown command with the key -a, it will cancel the reboot.
addition to standard tools, which can be reboot from the command line, there are other ways, some of them original, but many come because of Unix-based systems.One of these teams - clearly based systems Linux.See how sophisticated can be performed to restart Windows Explorer from the command line: ping -n seconds 127.0.0.1 & gt; nul & amp; wmic OS WHERE Primary = "TRUE" CALL Win32Shutdown 6.
Note that the icon used Redirection, there are still references to nul.Naturally, instead of -n seconds is necessary to specify the number through which you plan to do a restart.
One of the principles of management GUI Windows - process rundll32.exe, which is the host.With it loaded in the memory of dynamic libraries.This program has a command line interface that allows you to operate with graphical elements.Using it can also be a reboot from the command line: undll32 user.exe, ExitWindowsExec 2.
above is the easiest way to reboot via rundll32, working on all systems.
You can use normal call dialogue shutdown: undll32 msgina, ShellShutdownDialog.Or, just turn off your PC: RUNDLL.EXE user.exe, ExitWindows.
There are teams working far on all systems, but only on XP to SP2.It uses a conveyor element (|), which is typical for systems running Unix: echo y | net stop eventlog.
command operates as follows: Used flaw that allows a vital stop the Event Log service that initiates an automatic restart.
But the following commands is not limited.To reboot, you can use scripts in Visual Basic (VBS), adjacent utility Microsoft's.For example, psshutdown of complex Ps Tools, which is, in fact, improved shutdown.Type the following command in the console: psshutdown -r -f -t 30. This will restart a local or remote PC for 30 seconds.
Remote reboot from the command line, for example, a domain controller is made the team psshutdown -r comp1, where comp1 - the name of the PC, they can be separated by a comma.It would be nice to inform users about the restart.To do this, the key is psshutdown -m.Established team to restart the remote PCs - tsshutdn.
You may not need all of these ways, but for the overall development of any who are often faced with the administration of PCs based on Windows, to know them very helpful.