Computer Performance, Windows Vista Registry


Windows Vista Shutdown Command Line

The Vista Shutdown Command Line Switches

Shutdown is an exciting command line program available in Vista and Windows 7.  I say exciting both in the sense that everyone loves this command, and also exiting in the sense it has a dramatic effect - downs the computer. Therefore, take care when experimenting with this command.

Sooner or later you will shoot yourself in the foot, and accidentally shutdown your own machine instead of the computer that you really wish to reboot.  So pay close attention to this abort syntax.

Shutdown  /a  /m \\computername

Windows Vista 'Shutdown' Topics

Shutdown - The Basics

Shutdown is a built-in executable in Vista, XP and the Windows Server family. Begin by clicking on the Start orb, type cmd in the 'Search' box.  Your first major decision is do you want a simple shutdown or a restart?  To stop the machine, use Shutdown /s.  Alternatively, if you want the machine to reboot then type Shutdown /r.

After you issue the /s or /r, a dialog box appears with a 30 second count down, remember if you are just testing, then cancel.  Watch out for the dialog box disappearing after you type the Shutdown /a instruction.

Shutdown - Select your MainMachine

For the 'Remote' switch /m.  The full command would be:
Shutdown /r /m \\MainMachine.  The slashes look slightly strange, but that's how it works, in this example, 'MainMachine' is the name of the remote computer.  None of these commands are case sensitive so sHUTDOWN /R /m \\MainMachine would work.

Note: There is no space between the backslashes and the computername
\\  MainMachine would be a mistake.

  For the local machine, try 127.0.0.1
For example, shutdown /s /m \\127.0.0.1.  Useful in batch files.

Examples of The Vista Shutdown switches

shutdown /s /m \\Laptop - Shuts down a remote machine called 'Laptop'

shutdown /r /m \\Laptop - Reboots a remote machine called 'Laptop

Note: For once the sequence of switches is vital, hence shutdown /m /s \\ laptop does not work.

Shutdown Command Line - Add the Extras

/i is for interactive. This shutdown switch provides a GUI so that you can make your choices more easily.

/t is for time.  Is 30 seconds too short (or too long) a time?   You can adjust with /t: 60 to display the dialog box for one minute. Maximum is 600 seconds.

/f is for force.  'Mr Nasty', is coming - ready or not!  Shutdown /r /f as you may have guessed, restarts the machine, and closes any programs without warning.

/c is for a comment.  Would you like to put your stamp on the shutdown?  Let people know who is in charge, who is shutting them down?  /c "Guy is shutting you down"

/d p:4:1 reason.  Personally, I would avoid this switch, the syntax is tricky the numbers obscure and worst of all it does nothing exciting.  That said the idea is sound, it enters a reason for the shutdown in the event log.  If you activate shutdown's help, then you will get a whole list of major and minor reasons that you could employ with this switch.  For me, this switch is an option, an option that I do not take.

Note 1: Shutdown's switches work equally well with a dash, for example, -d, -r or -a 
(instead of /d, /r or /a)

Note 2: Here is an example of Shutdown in Windows 7

Guy Recommends:  The Orion Network Performance Monitor (NPM) 9.5Review of Orion NPM

Orion's performance monitor is designed for detecting network outages.  This NPM will guide you through troubleshooting by indicating whether the root cause is a broken link, faulty equipment or resource overload.  Because it produces network-centric views, it is intuitive to navigate, and as result you can see easily what's working and what's not.

Perhaps Orion's best feature is the way it suggests solutions.  Moreover, if problems arise out of the blue, then you can configure Orion NPM 9.5 to notify members of your team what's changed and how to fix it.

If you are interested in testing a professional performance monitor on your network, then I recommend that you take advantage of Solarwinds' offer of a download a free trial of Orion's Network Performance Monitor.

Restart-Computer PowerShell Cmdlet

PowerShell v 2.0's Restart-Computer cmdlet is very similar to Vista's shutdown /r command.  A likely scenario is that you wish to automate the reboot of a local or remote server.  With a tiny substitution to the cmdlet's verb you could change the command so that it simply shuts down the computer.

See more about using PowerShell's restart-Computer instead of the Vista shutdown command line.

Summary of The Vista Shutdown Command Line

It's fun to experiment with the shutdown command line switches, one day when you want restart a remote computer, shutdown /r will save you a long walk.  My advice is to learn the /a (abort) switch, that way you won't panic if you issue a command to shutdown the local laptop instead of the network machine.

Windows Vista Training

TrainSignal - Recommended Vista Training VideosTrain Signal have an excellent Windows Vista Training Course.  As an MCT trainer, I am a huge advocate of Train Signal’s products.  What impresses is me is that they demonstrate everything that they teach and they stay away from traditional 'lecture-style' training.  If you are looking for a complete DETAILED coverage of Windows Vista, then I highly recommend that you give this course a try.  I have reviewed their 18 hours of videos myself, and I guarantee that you will not be disappointed!

Watch a Vista Training Video Demo.

Windows Vista Registry Tweaks:

 

   Tweak the Registry ebook

Download your Tweak the Registry Ebook for only $6.45

This ebook will explain the workings of the registry.  I thoroughly enjoy tweaking the registry, and I want to distill the best of my experiences and pass them on to you.

Each registry tweak has two aims; to solve a specific problem, and to provide general learning points, which help you to master regedit. 

Over 60 pages ebook and PDF format

 

 

 

 *


Google

WebThis Site

Guy Recommends the Free IP SLA MonitorFree IP SLA Monitor

The IP SLA Monitor not only helps to discover network bottlenecks, but also teaches you about router traffic.  See how effortlessly this free monitor analyzes and then displays the IP statistics.

The key to configuring is to select the data most relevant to your network, for example, ping echo, DNS resolution times, or HTTP statistics. 

Download your free copy of IP SLA Monitor

 

Home Copyright © 1999-2009 Computer Performance LTD All rights reserved

Please report a broken link, or an error.