Smartphone Security

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 9 June 2013

Shutdown Command Via Command Prompt

Posted on 05:43 by Unknown
Shutdown Command Via Command Prompt 

The 'Shutdown' Command Becomes More Flexible and Automated when used from the Command Prompt.

To Run the 'Shutdown' command from the command prompt, go to 'Start > Run', type 'cmd', and press 'Enter'.
In the black box (the command prompt) type 'Shutdown' and the Switches you want to use with the 'Shutdown' command.
You have to use at least one switch for the shutdown command to work.

The Switches :-
The 'Shutdown' command has a few options called Switches. You can always see them by typing 'shutdown -?' in the command prompt if you forget any of them.

-i: Display GUI interface, must be the first option
-l: Log off (cannot be used with -m option)
-s: Shutdown the computer
-r: Shutdown and restart the computer
-a: Abort a system shutdown
-m \\computername: Remote computer to shutdown/restart/abort
-t xx: Set timeout for shutdown to xx seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-f: Forces running applications to close without warning
-d [u][p]:xx:yy: The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536)

Note :- I’ve noticed using a switch with a '-' sign doesn’t work sometimes.
If you are having trouble try using a '/' in place of '-' in your switches.

Examples :-
shutdown –m \\computername –r –f
This command will restart the computer named computername and force any programs that might still be running to stop.

shutdown –m \\computername –r –f –c “I’m restarting your computer. Please save your work now.” –t 120
This command will restart the computer named computername, force any programs that might still be running to stop, give to user on that computer a message, and countdown 120 seconds before it restarts.

shutdown –m \\computername –a
This command will abort a previous shutdown command that is in progress.

Using A Batch File :-
You can create a file that performs the shutdown command on many computers at one time.

In this example I’m going to create a batch file that will use the shutdown command to shut down 3 computers on my home network before I go to bed.

Open 'Notepad' and type the shutdown command to shut down a computer for each computer on the network.
Make sure each shutdown command is on its own line.
An example of what should be typed in notepad is given below-

shutdown –m \\computer1 –s
shutdown –m \\computer2 –s
shutdown –m \\computer3 -s

Now I’ll save it as a batch file by going to file, save as, change save as type to all files, give the file a name ending with '.bat'. I named mine 'shutdown.bat'.
Pick the location to save the batch file in and save it.

When you run the batch file it’ll shutdown computer 1, 2, and 3 for you.

You can use any combination of shutdown commands in a batch file.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Command, Prompt, Shutdown, Via | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • N.T. Rama Rao
    N.T. Rama Rao Nandamuri Taraka Rama Rao, also known as NTR, was born in 1923 in a well-to-do family in Andhra Pradesh. He showed interest in...
  • Breaking the Wishbone for Luck
    Breaking the Wishbone for Luck The tradition of pulling apart the wishbone, or clavicle, may be as much as 2,500 years old. Ancient Etruscan...
  • Celebrities before and after Photoshop
    Celebrities before and after  Photoshop Here is an interesting look at celebrities photos before and after photoshop. These can give you a f...
  • Soldering Tips
    Soldering Tips Soldering is accomplished by quickly heating the metal parts to be joined, and then applying a flux and a solder to the matin...
  • 20 Ugliest Celebrities
    20 Ugliest Celebrities By nature or personal choice, they are rich and famous and yet... ugly as hell!Ugliness is confined to external appea...
  • Interesting Facts About Typewriters
    Interesting Facts About Typewriters One of the first typewriters to allow typists to see work in progress was invented in 1855 by Giuseppe R...
  • 100 YEARSOF INDIAN CINEMA
    100 YEARS OF INDIAN CINEMA About a century ago, in 1912, Dadasaheb Phalke completed the first Indian feature film, Raja Harischandra and rel...
  • The Mysterious Nazca Lines
    The Mysterious Nazca Lines 1. The Nazca were an ancient people that lived in Peru, in South America, about 2,000 years ago. The people are w...
  • Ten Tips to Smartphone Security
    Ten Tips to Smartphone Security Smartphones continue to grow in popularity and are now as powerful and functional as many computers. It is i...
  • The Longest Mustache In The World
    The Longest Mustache In The World Ram Singh Chauhan of India is the proud owner of the world's longest moustache,officially recorded by ...

Categories

  • 10
  • 100
  • 101
  • 111
  • 12
  • 132
  • 148
  • 15
  • 16
  • 17
  • 17.RULES.TO.LIVE.BY.
  • 18
  • 19
  • 20
  • 2013
  • 21
  • 22
  • 25
  • 26
  • 3
  • 30
  • 35
  • 4
  • 47
  • 5
  • 50
  • 51
  • 56
  • 64th
  • 67
  • 67th
  • 7
  • 8
  • 9
  • a
  • ABORTION
  • about
  • achilles
  • Acidity
  • Acne
  • Actor
  • Actress
  • ADDICTION
  • Address
  • ADHD
  • Admin
  • Adopts
  • Ads
  • After
  • AGING
  • Aid
  • AK
  • ALCOHOL
  • alcoholism
  • alert
  • All
  • All About Albert Einstein
  • Allen
  • Almonds
  • Amazing
  • AMAZING FACTS ABOUT TATTOOS
  • Amazingly
  • American
  • Anatomy
  • and
  • Android
  • anger
  • Animal
  • animals
  • Annual
  • Anonymity
  • ANOTHER
  • Ant
  • ANTI
  • Antivirus
  • antivrus
  • Anxiety
  • any
  • Appetizing
  • Apple
  • Apple’s
  • applications
  • April
  • Archicebus
  • Armadillos
  • Around
  • ARP
  • arrow
  • Art
  • Articles
  • Artist
  • Arugula
  • Aspirin
  • Assign
  • Astronomical
  • Atlas
  • Attacks
  • Attitude
  • automatic
  • Awesome
  • Baatara
  • Back
  • Badger
  • Baking
  • ball
  • balls
  • BandWidth
  • Banner
  • Baroque
  • Basic
  • BASIL
  • Bat
  • Bathroom
  • Battery
  • Be
  • Bear
  • Beard
  • Beatles
  • beautifu
  • Beautiful
  • BEAUTY
  • Bee
  • Beep
  • Before
  • BELLY
  • Ben
  • Benefits
  • BERMUDA
  • BEST
  • Better
  • Big
  • biggest
  • Bill
  • BIOS
  • Birth
  • Bizarre
  • Black
  • Blog
  • Blood
  • blowing
  • Blue Hole
  • Body
  • Bodypainting
  • Bollywood
  • Bone
  • Boots
  • Bowling
  • Boys
  • BRAIN
  • BREAkfAsT
  • Breaking
  • BREATHING
  • Bridge
  • BROWN
  • Browser
  • Browsing
  • Bub
  • Buddhism
  • Build
  • Bundy
  • BURNING
  • Business
  • Bypass
  • Cabbage
  • Cactus
  • Cafe
  • Cake
  • Calculations
  • CALM
  • Camera
  • Can
  • Canada
  • Car Care Tips II
  • CARACAL
  • Carambola
  • Care
  • Careful
  • Caribbean
  • Castle
  • Cat
  • Cats
  • Cave
  • CD
  • celebrates
  • Celebrations
  • celebrities
  • Celebrity
  • Celebs
  • cell
  • CEREAL
  • Changes
  • Chapa
  • Chariot
  • check
  • CHILDREN’S DAY
  • China
  • Chinese
  • Chock
  • CHOCOLATE
  • Cholesterol
  • Christian
  • Chuck
  • Cider
  • CINEMA
  • CIRCLES
  • Circlism
  • Circus
  • City
  • ClickJacking
  • Clock
  • Clocks
  • Clown
  • Coca
  • cockroaches
  • Coconut
  • Code
  • Codes
  • Coffee
  • Cola
  • Colosseum
  • Command
  • Commandments
  • Committed
  • Common
  • Communication
  • Companies
  • Competition
  • completely
  • Computer
  • Computer.Pranks.50.in.1.AIO
  • Congress
  • Conjunctivitis
  • CONTACT
  • Conversation
  • Convert
  • Cookie
  • Cookies
  • Cool
  • Coping
  • Cosmetic
  • Cow
  • CRAVINGS
  • Crazy
  • Cream
  • Creative
  • Creatures
  • Crimes
  • Crocodile
  • Cross-sections of bullets
  • Crow
  • Cruz
  • ctr+c
  • ctr+v
  • Customize
  • Dairy
  • dam
  • DAMAGING
  • Dandruff
  • DARK
  • Day
  • Death
  • Deformities
  • Depression
  • Desk
  • desktop
  • Destructive
  • Devices
  • Devils
  • Diamond
  • Die
  • Diet
  • Different
  • Digital
  • dimples
  • DINING
  • Disable
  • Disciplines
  • Disease
  • disk
  • Disorder
  • Disorders
  • Display
  • Diwali
  • DNA
  • DNA Facts
  • DNS
  • do
  • Doctors
  • DOES
  • dog
  • Dogs
  • DONTS
  • Doong
  • Doppelgangers
  • Drag
  • Dragon
  • Drawbridge
  • Drawings
  • Dreams
  • Drinks
  • Drive
  • Drives
  • Dunns
  • Each
  • Early
  • Earthquake
  • EARTHWORM
  • easier
  • Easter
  • EASY
  • Echidna
  • Eckman
  • Ecstasy
  • Effective
  • Eggs
  • EIFFEL
  • EJACULATION
  • Elata
  • ELEGANT
  • Elephant
  • Eliminate
  • EMAIL
  • English
  • Enlightenment
  • Entire
  • Environment
  • Error
  • Espiritu Santo
  • Ethics
  • etiquette
  • Everyday
  • Everyone
  • Evil
  • evolution
  • Exam
  • Examination
  • Examples
  • Exercise
  • Exotic
  • Explained
  • express
  • Extrafine
  • EYE
  • Eyecare
  • Eyeglasses
  • EYES
  • Facebook
  • Faces
  • facts
  • Facts.About.Riboflavin.Vitamin. B.2.
  • fake
  • Falling
  • Falls
  • Fame
  • Family
  • Famous
  • Fascinating
  • Fast
  • Fat
  • favourite
  • FESTINA
  • Festival
  • FEVER
  • Fiji
  • FILES
  • film
  • find
  • Firewalls
  • First
  • Fish
  • Fit
  • Flash
  • Flax
  • FLOW
  • Fly
  • Flying
  • Foil
  • font
  • Food
  • FOODS
  • Fools
  • for
  • FORCIBLY
  • Forever
  • FOUL
  • Foxy
  • France
  • Free
  • Fried
  • Friends
  • Friendship
  • Frogs
  • from
  • Fruit
  • Ful
  • Fun
  • Fungus
  • funny
  • Fushun
  • Fussen Germay
  • Gacy
  • Gadjets
  • Garage
  • Garden
  • GARLIC
  • Gates
  • Gateshead Millennium Bridge
  • Gelatin
  • Genetic
  • Genetics
  • getting
  • Giraffe
  • girl
  • Girls
  • Glass
  • Glass Gem PopCorn
  • Globes
  • Glycerine
  • GOATS
  • God
  • Gold
  • golden
  • Golf
  • Gomateshwara
  • Good
  • Google
  • Gorge
  • GOUT
  • Grand
  • Gravies
  • Great
  • Green
  • GREYING
  • Grooming
  • Grouse.
  • GRRRREAT
  • Guide
  • Guinness World Records 1
  • Gun
  • Gunnison
  • Guns
  • guys
  • Habits
  • Hachiko
  • Hack
  • Hackers
  • Hagia
  • Hair
  • HAIRFALL
  • Half
  • Hall
  • Halloween
  • Happiness
  • Happy
  • HEADED
  • Health
  • Healthier
  • healthy
  • HEAT
  • Heine
  • help
  • Herbs
  • Hidden
  • Hide
  • High
  • Highly
  • Hijacker
  • HINDUISM
  • Hints
  • History
  • Holy
  • HOME
  • Hometown
  • Honey
  • Hookah
  • Hooker
  • Horse
  • Hot
  • Household
  • How
  • Howler
  • Human
  • Humans
  • HYPERTENSION
  • I
  • I.Q
  • Ice
  • icons
  • identify
  • II
  • Illustrations
  • IMPOTENCE
  • improve
  • in
  • Increase
  • Independence
  • India
  • INDIAN
  • Indias
  • Infamous
  • Infected
  • Installing
  • Int.
  • interesting
  • Internet
  • Introduction
  • iPhone
  • IRON
  • Is
  • Island
  • Jack
  • jackfruit
  • Jamaica
  • January
  • Japan
  • JesĆŗs
  • John
  • jokes
  • Jr
  • Juice Fasting
  • Junk
  • Just
  • Kapok
  • keep
  • keeping
  • Keira
  • Key Loggers
  • Keyboard
  • Kidney
  • Kids
  • Kilimanjaro
  • Killer
  • killing
  • kinds
  • Kissing
  • Kitchen
  • kitten
  • Klementinum
  • Knife
  • Knightley
  • Know
  • Koalas
  • KONARK
  • l of
  • Lake
  • LANGUAGE
  • Lanka
  • Lantern
  • LAPTOP
  • laptops
  • Largest
  • Latitude
  • Laundry
  • Lavaredo
  • LEANING
  • Learning
  • Leg
  • Lego
  • LENTE
  • Lessons
  • Libra
  • Library
  • life
  • Light
  • lightening
  • Lights
  • likes
  • Lil
  • Lincoln
  • Lines
  • Linux
  • lion
  • Lips
  • LITTLE
  • LIVING
  • Lofoten
  • log
  • Longest
  • Longitude
  • LOOP
  • Loss
  • Lost
  • Louise
  • Love
  • low
  • Lowering
  • Luck
  • Mac
  • machine
  • Macropinna Microstoma
  • Made
  • Mafia
  • MAGNESIUM
  • Magnets
  • Maintain
  • make
  • makeup
  • MAKING
  • Malacara
  • Malware
  • manage
  • Manatee
  • Mango
  • Manual
  • Many
  • Marilyn
  • MARKS
  • Mathematics
  • MEAN
  • MEANING
  • Meats
  • Medicinal
  • Megatrends
  • Memory
  • Men
  • Mental
  • Mercury
  • message
  • Metal
  • Micro
  • Might
  • Milk
  • mind
  • Mobile
  • MOLES
  • Monkey
  • monolithic
  • Monroe
  • Mont
  • MoRaIne LaKe -20 dollar view
  • Moral
  • Moringa
  • MORNING
  • Most
  • Moth
  • Mothers
  • Mount
  • MS
  • MSWindows
  • Mug
  • Multiple
  • Mustache
  • my
  • MYOPIA
  • Mystery
  • Mystical
  • N
  • Nail
  • names
  • Natural
  • Nazca
  • Neodymium
  • Network
  • Neuschwanstein
  • Never
  • New
  • Nights
  • Nike Spoof and Copycat Logos
  • Noodles
  • Norris
  • Norway
  • Not
  • November
  • NTFS
  • Nutrition
  • Nutritional
  • NZ
  • O
  • OATsTAnDing
  • occasions
  • Ocelot
  • Of
  • office
  • Okapi
  • Oldest
  • OMG
  • on
  • Onion
  • online
  • OOo
  • OPOSSUMS
  • Optimum
  • Orange
  • Orchid
  • Oresund
  • Organic
  • organisms
  • organization
  • Original
  • os
  • out
  • Own
  • Oxymoron
  • Pagoda
  • Painting
  • paintings
  • Palace
  • Paper
  • Parents
  • Parrot
  • Part
  • Partition
  • password
  • Passwords
  • Pattaya
  • Patty
  • PCSX2
  • peace
  • peaks
  • Peel
  • Pegasus
  • Penelope
  • People
  • PERFECT
  • Performance
  • Phoenix
  • Phone
  • Photographers
  • Photos
  • Photoshop
  • Piano
  • Pie
  • Piercing
  • Pigs
  • Pilot
  • Pirates
  • PISA
  • Pistachio
  • Pomeranian
  • Pop
  • Popular
  • Portraits
  • POSITIVE
  • Positive Thinking
  • Potala
  • Prague
  • Pranks
  • Precepts
  • PREGNANCY
  • PREMATURE
  • Presidents
  • Pressure
  • prevent
  • PRICKLY
  • primate
  • Programs
  • Promote
  • Prompt
  • protect
  • Protocol
  • Psychotria
  • Puzzle
  • Quack
  • Queens
  • QUETZAL
  • Quick
  • Quotes
  • Raccoon
  • rajnikanth
  • Rama
  • Rambo
  • Rao
  • Rat
  • Rayong
  • Read
  • Real
  • Reasons
  • Recipes
  • recording
  • recover
  • REDUCE
  • Registry
  • REMEDIES
  • Remove
  • Reporting
  • Reptile
  • Republic Day
  • Resolution
  • restart
  • restrict
  • Rewire
  • RICE
  • Ring
  • Risks
  • River
  • Roboy
  • Rock
  • Rolex
  • Rolls
  • ROM
  • Roman
  • Room
  • Roraima
  • ROSE
  • Royce
  • Rugby
  • Rules
  • RulesThumb
  • Rupee
  • Safari
  • Safety
  • Sage
  • Salt
  • Samsung
  • Sanctuary
  • saving
  • Saying
  • Scan
  • Schimmel
  • SCORPIO
  • screen
  • Scribbles
  • Sculpture
  • Sculptures
  • Sea
  • Seasonings
  • Secret
  • Secrets
  • Secure
  • Security
  • Seed
  • SEMINAL
  • Serial
  • Sewing
  • SEX
  • SEXUAL DEBILITY
  • Shocking
  • Shoes
  • Short
  • shortcut
  • shortcuts
  • SHORTSIGHTEDNESS
  • Shot
  • Shots
  • Should
  • Shutdown
  • Shwedagon
  • SICKNESS
  • Sign
  • SIMPLE
  • Simply
  • Six
  • Skills
  • skin
  • SkinType
  • Slauerhoffbrug
  • Sleep
  • slim
  • Small
  • Smallest
  • Smartphone
  • smartphone photos
  • Smoothie
  • Snow
  • Soap
  • Soccer
  • Social
  • Soldering
  • Solutions
  • Solved
  • Some
  • Son
  • Sophia
  • Sorvagsvatn
  • Soybean
  • space
  • Speed
  • SPERMATORRHEA
  • Spider
  • Spirit
  • Split
  • spot
  • SPRAINS
  • Sprouts
  • Squirrel
  • Sri
  • Star
  • Start
  • StartIsBack
  • States
  • Statue
  • stay
  • Steampunk
  • STEPS
  • stick
  • StMichel
  • Stones
  • Story
  • Stress
  • Structure
  • studying
  • Success
  • Sucking
  • Sucks
  • Sugar
  • Sun
  • Super
  • Surgery
  • Swami
  • Sweaters
  • switch
  • System
  • System Tray
  • T
  • Taina
  • TAKE
  • taking
  • Tale
  • Talents
  • Talk
  • Tallest
  • Tattoo
  • Tattooed
  • Tattoos
  • Teachers
  • Techies
  • Technics
  • Ted
  • Television
  • Ten
  • Terminator
  • TERMITE
  • Terms
  • TEST
  • Text
  • Thai
  • Thailand
  • Than
  • Thanksgiving
  • that
  • The
  • their
  • Things
  • think
  • this
  • three
  • Thumbsucking
  • Tiger
  • Tilting
  • Time
  • Tips
  • TISSUE
  • To
  • to Do
  • Toads
  • Tobacco
  • Tollywood
  • Tooth
  • Toothache
  • Top
  • Top 14 Tips To Improve Your Sleep
  • Top 4 Substitutions Tips
  • Top Digital Cameras In India
  • Topics
  • Toting
  • TOWER
  • Toy
  • TRAIN
  • Treat
  • Tree
  • Trees
  • Trevor Williams
  • Triangle
  • Trio
  • Trivia
  • Trojan
  • Truth
  • Tulsi
  • Tweaks
  • Twenty
  • Types
  • Typewriters
  • UAC
  • Ubuntu
  • Ugliest
  • UNDER
  • United
  • Unlikely
  • UNsuccessful
  • Untranslatable
  • Up
  • Upgrading
  • Uptime
  • US
  • USB
  • Useless
  • Uses
  • using
  • Value
  • Vanuatu
  • Varanasi
  • Vardzia
  • Vegetables
  • Venus
  • Version
  • very
  • Via
  • Victoria
  • video
  • Vinegar
  • viruses
  • Vivekananda
  • Vivi
  • voice
  • vs
  • Waist
  • Water
  • Waterfall
  • way
  • Wayne
  • Ways
  • WEAKNESS
  • web
  • Weight
  • Wet
  • What
  • Which
  • while
  • Why
  • Wilderness
  • Win
  • Window
  • Windows
  • Windows 8
  • WINKING
  • Wisdom
  • Wishbone
  • with
  • without
  • Women
  • Wooden
  • Words
  • World
  • World!
  • worlds
  • WOW
  • X
  • XP
  • Year
  • Years
  • You
  • Young
  • your
  • YUCK
  • Zambia
  • Zebra

Blog Archive

  • ▼  2013 (478)
    • ►  November (35)
    • ►  October (49)
    • ►  September (58)
    • ►  August (75)
    • ►  July (42)
    • ▼  June (32)
      • Doctors’ Day In India
      • Serial killer John Wayne Gacy, Jr-The "Killer Clown"
      • Ted Bundy -A Serial Killer
      • Fascinating Facts about cockroaches
      • How to Rewire Your Brain
      • BELLY FAT-BURNING FOODS
      • 15 Secrets for Using Body Language in Business
      • Top Grooming Tips for Men
      • Simple Tips And Technics To Keep Your Body Fit And...
      • Disable Error Reporting in Win XP
      • Facts About Snow Monkey
      • MOBILE PHONE TIPS
      • Hair Care Tips
      • 5 Ways to Reduce Dandruff
      • Interesting Echidna Facts
      • 15 Healthy ways to express and manage anger
      • Okapi: Half Giraffe, Half Zebra
      • Oldest primate-Archicebus achilles
      • Howler Monkey Facts
      • Fast Facts about Human Genetics
      • Spider Facts
      • Computer Viruses
      • Keystroke Logging-Key Loggers
      • Shutdown Command Via Command Prompt
      • Remove shortcut arrow from desktop icons completely
      • Pop A Banner Each Time Windows Boots
      • KONARK - Chariot of Sun God
      • World Environment Day 2013
      • How to improve your communication skills
      • How Can I Eliminate Stress from My Life?
      • 21 Topics for Small Talk Conversation for all occa...
      • Windows Mango vs Android : Which is the best os fo...
    • ►  May (27)
    • ►  April (8)
    • ►  March (56)
    • ►  February (28)
    • ►  January (68)
  • ►  2012 (22)
    • ►  December (22)
Powered by Blogger.

About Me

Unknown
View my complete profile