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.

You may also like

152 thoughts on “Shutdown Command Via Command Prompt :-

  1. xylocaine ciprofloxacin hcl tablet uses in gujarati He said Given the harsh reality of the current economy and the struggles facing families, I hope common sense will prevail and these proposals will be thrown out after the consultation process ?»?cialis

  2. 5 para que es The campaigners fear removing the powers from the councils could be the start of a slippery slope towards more and larger councils also being stripped of the powers if they stand in the way of developers where to buy cialis online forum If the chip is deep enough, and there is pulp damage, we might suggest a root canal and a crown

  3. This is the right site for anybody who wishes to find out about this topic. You understand so much its almost hard to argue with you (not that I personally would want to?HaHa). You definitely put a brand new spin on a topic that has been written about for decades. Great stuff, just excellent!

  4. Hola! I’ve been following your website for a long time now and finally got the bravery to go ahead and give you a shout out from Dallas Tx! Just wanted to tell you keep up the great job!

  5. You really make it seem so easy together with your presentation however I find this topic to be really something which I feel I might never understand. It kind of feels too complicated and very broad for me. I am taking a look forward in your next publish, I will try to get the hold of it!

  6. buy cialis cheap good luck to you, but please be sure to do your research and it sounds as though you are, so kudos and start off with the LOWEST dose 50mg to reduce the odds of producing cysts, which I ve heard can be VERY painful

  7. Oh my goodness! Amazing article dude! Thank you, However I am experiencing issues with your RSS. I don’t know why I can’t subscribe to it. Is there anybody else getting the same RSS problems? Anybody who knows the solution will you kindly respond? Thanx!!

  8. I was extremely pleased to find this website. I wanted to thank you for your time due to this wonderful read!! I definitely appreciated every bit of it and I have you saved as a favorite to see new things on your website.

  9. Greetings from Colorado! I’m bored to tears at work so I decided to check out your website on my iphone during lunch break. I enjoy the knowledge you present here and can’t wait to take a look when I get home. I’m amazed at how quick your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyhow, fantastic site!

  10. I simply could not depart your site prior to suggesting that I extremely enjoyed the standard information a person supply in your visitors? Is going to be back often in order to check out new posts

  11. of course like your website however you need to check the spelling on quite a few of your posts. Several of them are rife with spelling problems and I in finding it very bothersome to tell the truth then again I will certainly come back again.

  12. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is magnificent blog. An excellent read. I’ll definitely be back.

  13. Your style is really unique compared to other people I have read stuff from. Thanks for posting when you have the opportunity, Guess I will just bookmark this site.

  14. I used to be recommended this website by way of my cousin. I am now not sure whether this publish is written by means of him as no one else recognize such detailed approximately my difficulty. You are amazing! Thank you!

  15. Discovering the Supremacy of Kazbaz’s Finest Classifieds
    Platform

    In the realm of online commerce, identifying the optimal platform to buy, sell,
    and trade can profoundly influence the success of your endeavors.
    Enter Kazbaz’s Premier Ads Platform, a revolutionary destination that redefines norms in the online buying and selling arena.
    In this article, we dive into the outstanding features and advantages that establish Kazbaz as the ultimate choice for individuals
    and businesses looking for a superior classifieds experience.

    Embracing Kazbaz’s Matchless Features:
    Kazbaz represents a pinnacle to progress in the virtual marketplace, providing a vibrant space for participants to list, discover, and interact with an extensive range of products and services.
    Its distinctive attributes introduce a new era of effectiveness and convenience.

    1. State-of-the-Art User Interface:
    Navigating Kazbaz Top-tier Ads Board is effortless due to its innovative intuitive interface.
    Users can readily list items, attach pictures, and offer comprehensive
    explanations, guaranteeing high-quality listings.

    2. Extensive Categorization:
    From electronics to interior furnishings, Kazbaz Prime Classifieds Board boasts a diverse array of
    categories, serving diverse preferences. Participants benefit from specific searches, guaranteeing they discover what they desire.

    3. Amplified Visibility:
    Listing on https://kazbaz.ru/ Premier Ads Board offers
    matchless exposure. Reach a vast audience locally and internationally, opening doors to new opportunities for transactions and connections.

    4. Protected Transactions:
    Kazbaz robust security measures ensure private deals.
    Participants can engage with confidence, building a sense of
    trustworthiness within the platform.

    5. Instant Messaging:
    The integrated messaging system simplifies direct interaction between users, making negotiations smoother
    and enabling swift deal finalization.

    Kazbaz’s Foremost Ads Board stands as the epitome of online trading excellence.
    Its user-friendly design, wide array of sections, global presence,
    security features, and real-time communication tools contribute to
    create a unified venue that meets the diverse needs of participants.
    Experience the unmatched advantages of Kazbaz’s Premier Classifieds Platform
    today, and embark on a pathway to effortless virtual transactions.

  16. Good day! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa? My website goes over a lot of the same subjects as yours and I believe we could greatly benefit from each other. If you happen to be interested feel free to send me an e-mail. I look forward to hearing from you! Fantastic blog by the way!

  17. I will right away grab your rss as I can not in finding your email subscription link or newsletter service. Do you have any? Please permit me understand so that I may just subscribe. Thanks.

  18. I?m not that much of a online reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back down the road. Cheers

  19. I’m impressed, I must say. Rarely do I encounter a blog that’s both educative and interesting, and let me tell you, you have hit the nail on the head. The issue is something not enough folks are speaking intelligently about. I am very happy that I stumbled across this in my search for something relating to this.

  20. I don’t know if it’s just me or if everyone else experiencing problems with your website. It appears like some of the text on your posts are running off the screen. Can someone else please comment and let me know if this is happening to them too? This could be a problem with my web browser because I’ve had this happen before. Cheers

  21. Undeniably believe that that you stated. Your favourite justification appeared to be at the internet the simplest thing to keep in mind of. I say to you, I definitely get irked at the same time as other people consider worries that they plainly do not realize about. You controlled to hit the nail upon the top as welland also defined out the whole thing with no need side effect , other folks can take a signal. Will likely be back to get more. Thank you

  22. An intriguing discussion is worth comment. I do believe that you ought to write more on this subject, it might not be a taboo subject but generally people do not speak about such subjects. To the next! All the best!!

  23. This is the right website for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you (not that I actually would want to?HaHa). You definitely put a brand new spin on a topic that’s been written about for many years. Excellent stuff, just great!

  24. Thanks for a marvelous posting! I seriously enjoyed reading it, you can be a great author. I will be sure to bookmark your blog and will eventually come back later in life. I want to encourage one to continue your great posts, have a nice holiday weekend!

  25. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is magnificent blog. A great read. I’ll definitely be back.

  26. Hi there! This is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche. Your blog provided us valuable information to work on. You have done a extraordinary job!

  27. Hello there, just became aware of your blog through Google, and found that it is really informative. I’m gonna watch out for brussels. I will appreciate if you continue this in future. Many people will be benefited from your writing. Cheers!

  28. I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100% positive. Any recommendations or advice would be greatly appreciated. Thank you

  29. Hi there! I know this is kinda off topic but I was wondering which blog platform are you using for this site? I’m getting tired of WordPress because I’ve had issues with hackers and I’m looking at options for another platform. I would be great if you could point me in the direction of a good platform.

  30. I am currently writing a paper and a bug appeared in the paper. I found what I wanted from your article. Thank you very much. Your article gave me a lot of inspiration. But hope you can explain your point in more detail because I have some questions, thank you. 20bet

  31. Fantastic blog! Do you have any recommendations for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally confused .. Any recommendations? Bless you!

  32. Thank you for some other magnificent article. Where else may anyone get that kind of information in such a perfect approach of writing? I have a presentation next week, and I am at the look for such information.

  33. Does your website have a contact page? I’m having a tough time locating it but, I’d like to send you an e-mail. I’ve got some suggestions for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it improve over time.

  34. Apoiar ferramentas de apostas e estar equipado com uma plataforma diversificada de transações financeiras, a 20Bet oferece suporte tangível aos jogadores. Este é um lugar onde eles podem apostar com dinheiro real, respaldados por concorrentes de diversas disciplinas esportivas. 20bet

  35. I like the valuable information you supply in your articles. I will bookmark your weblog and test again here frequently. I am rather certain I will be told a lot of new stuff right here! Good luck for the following!

  36. When I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the same comment. Is there a means you can remove me from that service? Thanks a lot!

  37. Wow, incredible blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is fantastic, let alone the content!

  38. I am currently writing a paper that is very related to your content. I read your article and I have some questions. I would like to ask you. Can you answer me? I’ll keep an eye out for your reply. 20bet

  39. I blog frequently and I really appreciate your content. This article has really peaked my interest. I am going to book mark your site and keep checking for new information about once a week. I subscribed to your RSS feed as well.

  40. Today, I went to the beach front with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is completely off topic but I had to tell someone!

  41. magnificent submit, very informative. I ponder why the other experts of this sector don’t realize this. You should proceed your writing. I am confident, you’ve a great readers’ base already!

  42. ?????? ???????? ???????? ?????? ??? ? ????? ???????? ??? ?????? ?????????? ? ?????????????? ?? ????? styazhka-pola24.ru! ?? ????????????? ?????? ?? ?????????? ?????? ???? ? ?????? ? ???????, ? ????? ??????????? ???????? ????? ? ????????? ????.

  43. ????? ????????? ?????????? ??? ???????????????? ?????????? ???? ? ??????? ?????????? ? ??? ?? ???? mehanizirovannaya-shtukaturka-moscow.ru! ?? ?????????? ?????? ?? ??????????????? ???? ???????????????? ???????? ????? ????????? ? ???????, ? ????? ??????????? ??????? ???????? ?????.

  44. I was wondering if you ever considered changing the page layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?

  45. Hello there, just became aware of your blog through Google, and found that it is really informative. I’m gonna watch out for brussels. I will appreciate if you continue this in future. Lots of people will be benefited from your writing. Cheers!

  46. First off I would like to say superb blog! I had a quick question in which I’d like to ask if you don’t mind. I was interested to find out how you center yourself and clear your mind prior to writing. I’ve had a difficult time clearing my mind in getting my ideas out. I truly do enjoy writing but it just seems like the first 10 to 15 minutes are usually wasted simply just trying to figure out how to begin. Any recommendations or hints? Thank you!

  47. I have been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty value enough for me. Personally, if all website owners and bloggers made good content as you did, the internet will be much more useful than ever before.

  48. ??????????? ????? ?????????? ??? ????????? ?????????? ???????, ??????? ?????????? ????????????????. ????????? mehanizirovannaya-shtukaturka-moscow.ru ??? ????????? ????????? ??????????.

  49. Good day I am so delighted I found your weblog, I really found you by error, while I was researching on Yahoo for something else, Regardless I am here now and would just like to say kudos for a incredible post and a all round interesting blog (I also love the theme/design), I don’t have time to read through it all at the moment but I have saved it and also added your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the awesome work.

  50. I do not even know the way I ended up here, however I assumed this submit used to be good. I do not realize who you’re however definitely you’re going to a well-known blogger if you are not already. Cheers!

  51. I used to be recommended this web site by means of my cousin. I’m not positive whether this put up is written via him as no one else recognize such specified approximately my problem. You’re incredible! Thank you!

  52. I’m extremely pleased to discover this website. I need to to thank you for your time for this particularly wonderful read!! I definitely really liked every bit of it and I have you book-marked to check out new things on your blog.

  53. Hi there, You have performed an excellent job. I will certainly digg it and individually suggest to my friends. I’m confident they will be benefited from this site.

  54. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three emails with the same comment. Is there any way you can remove me from that service? Cheers!

  55. of course like your website however you need to check the spelling on quite a few of your posts. Several of them are rife with spelling problems and I find it very bothersome to tell the truth on the other hand I will surely come back again.

  56. Do you have a spam issue on this website; I also am a blogger, and I was wanting to know your situation; many of us have created some nice procedures and we are looking to swap strategies with other folks, why not shoot me an e-mail if interested.

  57. I have been surfing online more than 2 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the web will be much more useful than ever before.

  58. whoah this blog is wonderful i love studying your articles. Stay up the good work! You recognize, lots of people are hunting around for this information, you could aid them greatly.

  59. Hi, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam comments? If so how do you stop it, any plugin or anything you can suggest? I get so much lately it’s driving me mad so any help is very much appreciated.

  60. ??? ?????? ???????? ????????? ?????????? ??????????? ? ?????????. ??? ?? ?????? ????????????? ??????????, ?? ? ??????????? ? ??????????? ???????? ????. ??????? ??????? ?????? ?? ??? ???????? ? ???????? ?????? ????????????? ????????!

  61. Wonderful blog! Do you have any recommendations for aspiring writers? I’m hoping to start my own blog soon but I’m a little lost on everything. Would you advise starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m totally confused .. Any tips? Kudos!

  62. The other day, while I was at work, my sister stole my iphone and tested to see if it can survive a 25 foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views. I know this is completely off topic but I had to share it with someone!

  63. Link exchange is nothing else except it is simply placing the other person’s webpage link on your page at suitable place and other person will also do similar for you.

  64. Awesome blog! Do you have any hints for aspiring writers? I’m planning to start my own blog soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m totally overwhelmed .. Any suggestions? Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

Popular News

Featured News

Trending News