Okkoma Dewal Tricks

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

Tuesday, 15 May 2012

Shutdown Your Computer or a Remote Computer via Command Prompt

Posted on 21:00 by Unknown
Shutdown Your Computer or a Remote Computer via Command Prompt

Most of us shutdown our computers using the power button given in the Start menu. Some of us use the physical power button on our machines. Very few people actually use other means of shutting down a computer and even less is the number of people who use the command prompt to shutdown a computer.



A reason for this is that most of us don't know that the command prompt can be used to not only shutdown, restart or log off our computer instantly but also to shutdown a remote computer provided you have administrative access. It can also be used to hibernate a computer and give a comment containing the reason for shutdown. This post will show you how to do all this.

Shutdown computer with command prompt
Required
A computer running Windows (XP, Vista, 7 or 8) with the command prompt working perfectly, i.e. not disabled by a virus.

Initial Steps
1) Press Windows Key + R.
2) Enter CMD and press Enter.

This will start the command prompt. Follow the instructions below depending on what you want to do.

Shutdown Local Machine (Your Computer)
Type "shutdown -s" without the quotes in the command prompt and press Enter. Shutdown is the command being executed and the switch -s tells the computer to shutdown.

Restart your Local Computer
Type "shutdown -r" in the command prompt and press Enter. In this case, the command switch -r is telling the computer to restart after shutdown.

Log Off the Current User
Type "shutdown -l" in the command prompt and press Enter. The -l command switch tells the computer to log off.

Shutdown a Remote Computer
Type "shutdown -s -m \\name of the computer" in the command prompt and press Enter. Replace \\name of the computer with the actual name of the remote computer you are trying to shutdown. As mentioned earlier, you must have administrative access to the computer you are trying to shutdown. To know if you have administrative access, press Windows key + R and then type the name of the computer and press Enter.

Note: If you don't remember the name of the remote computer, you can look for it by opening a list of all the computers you are connected to by executing "net view" in command prompt.

If you can connect to the computer, you will be asked to login with your username and password. Upon entering them, a window will display the list of all the directories available to you. This should help you know whether you can or cannot shutdown the remote computer.

Hibernate a Local Computer
Type in "Rundll32.exe Powrprof.dll,SetSuspendState" without the quotes and press Enter. Your computer should hibernate, if it does not, then you must enable hibernation to do this.

Shutdown your or a remote computer after a specific time
Type "shutdown -s -t 60" to shutdown your computer after 60 seconds. Upon executing this, a countdown timer displaying a warning message will be shown. This command uses the -t command switch followed by a variable (which is 60 in this case) which represents the number of seconds after which the computer will shutdown.

Display a Message containing the reason for shutdown
Type shutdown -s  -t 500 -c "I am tired. I don't want to work anymore." (with the quotes) and press Enter. The -c switch is used in the code to give the reason for shutting down and what is followed in quotes will be displayed in the dialog box as the reason. This can be used to display all sorts of funny messages. One example :-

Skynet has become self aware. John Connor did not stop me. You can not use your PC anymore.

Stop a System Shutdown
Type "shutdown -a" and press Enter. This will stop the system from shutting down if the countdown to shut down has not reached 0.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Computer Tricks | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Dead Space 3 Review
    Details About This Game :     Game : Dead Space 3     Platforms : PC, PS3, 360     Genre : Action     Publisher : Electronic Arts     Devel...
  • How To Make An Easy Clickable Link
    In this post i will show you how to make a text link or hyperlink. Making the link is very simple. This is how you would create a link direc...
  • Download Boot Camp Drivers Fot Windows 8
    Four months after the release of Windows 8, Apple has finally updated Boot Camp Assistant to add support for Windows 8. Yes, Boot Camp 5.0...
  • Avoiding Some Basic Problems during a Conference Call
    There is no hard and fast rule, when it comes to the usage of conference calls. Generally, there can be varied reasons for using conference ...
  • Acer Iconia Tab A700
    With the A700, Acer essentially took its Iconia Tab A510, slapped in a 1,920x1,200-pixel resolution screen and gave it a new name. Unfortuna...
  • Microsoft Genuine Licence Keys Part 02
    Microsoft Office 2000 Small Business Edition: CGGYH-6GF4P-J82Y8-CRXQ6-JKYHX B8F8H-9D2RY-WTRB7-VG7MW-95QM6 GFYPB-J6T84-VR7VJ-PZHPP-8PDMT TW2R...
  • Download UC BrowserHD For Windows 8
    Regardless of the editions of Windows 8, Internet Explorer is available in two versions: Internet Explorer for desktop and Internet Explor...
  • How To Import Photos From iPhone To Windows 8
    Apple iPhone is still one of the best smartphones out there and selling pretty well in spite of stiff competition from the beautiful Nokia...
  • Supertrailer - This week's best videos recut into one energizing video
    http://www.gamesradar.com/supertrailer-weeks-best-videos-recut-one-energizing-video/ Song: Playing with Danger (from Team Fortress 2) remix ...
  • Supertrailer - The best trailers of the week remixed into to make one dramatic montage
    Music is from the Rome 2 Total War trailer While most of us over here were thinking about lighting and/or watching fireworks on Wednesday fo...

Categories

  • 11inch
  • 19201200
  • 19Pin
  • 3615QM
  • 40L5200U
  • 44999
  • 64bit
  • 700Z7CH
  • about
  • Absolution
  • action
  • Activision
  • Adult
  • again
  • AirCurve
  • Alleged
  • almost
  • already
  • alternative
  • amazing
  • America
  • analyst
  • Android
  • Android Tricks
  • announced
  • announcement
  • Anticipated
  • Apple
  • Apple Tricks
  • Apples
  • arrives
  • Assassins
  • assembled
  • Avail
  • available
  • AW100
  • backers
  • backplate
  • Battery
  • being
  • Bentley
  • beyond
  • Black
  • Blizzard
  • Blogger
  • Blogger Gadget
  • Blogger Tricks
  • Bluetooth
  • brilliance
  • Buffalo
  • business
  • Business
  • camera
  • Camera
  • Canon
  • Canons
  • Carrier
  • cellular
  • Cellular
  • Challenge
  • Chicken
  • Chrono
  • Cisco
  • Close
  • Cloud
  • collaboration
  • com
  • combined
  • Comics
  • coming
  • Command
  • Computer Tricks
  • Concept
  • Concepts
  • Confirmed
  • Connect
  • Connector
  • Continental
  • Conundrum
  • Coolpix
  • Creed
  • Dawnguard
  • defeat
  • details
  • Diablo
  • doesnt
  • Double
  • dramatic
  • Droid
  • durable
  • E-Money
  • EA4500
  • Edition
  • energizing
  • EOS1D
  • Episode
  • Essentials
  • expansions
  • Facebook Tricks
  • Fantasy
  • Featured
  • features
  • Ferrari
  • figure
  • Final
  • first
  • footage
  • forget
  • Fourth
  • Freeform
  • Freeman
  • front
  • Gadgets News
  • Galaxy
  • Game News
  • gameplay
  • games
  • Gamesplanet
  • GamesRadars
  • GConnect
  • Google
  • Gordon
  • Grand
  • GreatCall
  • Griffin
  • GTechnology
  • Guardians
  • Guild
  • Hacking Tricks
  • HalfLife
  • HDPATU3
  • HE400
  • Headphones
  • HiFiMan
  • Hitman
  • holder
  • horrifying
  • Iconia
  • IdeaPad
  • Incredible
  • ingame
  • Innergie
  • Inspiration
  • Internet Tricks
  • iPhone
  • iSung
  • itself
  • Jelly
  • Jitterbug
  • Justice
  • Kickstarter
  • Killer
  • killing
  • launch
  • launches
  • leaked
  • Lenovo
  • Lexus
  • lifted
  • Limbo
  • Limited
  • Linksys
  • loads
  • Local
  • MacBook
  • Machines
  • Make Money
  • Marvel
  • Mazda
  • Micro
  • Microsofts
  • MiddleEarth
  • might
  • MiniStation
  • Mission
  • mobile
  • Mobile Tricks
  • Monster
  • montage
  • Mount
  • MS Office
  • News
  • Nexus
  • Nikon
  • North
  • October
  • offers
  • Online
  • Optimus
  • Other
  • Other Tricks
  • partially
  • parts
  • Payne
  • phone
  • phones
  • physics
  • planned
  • player
  • PlayStation
  • PocketCell
  • potential
  • power
  • Premium
  • Professional
  • Quantum
  • Quarters
  • Raider
  • ready
  • really
  • Rechargeable
  • recut
  • register
  • release
  • released
  • remixed
  • Remote
  • Resident
  • resolution
  • restrictions
  • revealed
  • review
  • Robot
  • roundup
  • Router
  • running
  • sample
  • Samsung
  • Sauron
  • season
  • September
  • sequel
  • Series
  • shows
  • Shure
  • silver
  • Skyrims
  • Smart
  • smashing
  • Sniper
  • sniping
  • Software Tricks
  • Something
  • Sonos
  • Special
  • sports
  • SRH1440
  • stirs
  • Studios
  • stuff
  • subway
  • Summer
  • Supertrailer
  • Tablet
  • Tacoma
  • teased
  • Technology
  • Tegra
  • Telltale
  • Theres
  • thickness
  • things
  • Thirds
  • Thunderbolt
  • today
  • Toshiba
  • Total
  • Touring
  • Toyota
  • trailer
  • trailers
  • Tricks
  • turning
  • unlocked
  • Unofficial
  • Unveiled
  • Valve
  • Verizon
  • video
  • videos
  • Virus Tricks
  • Walking
  • weeks
  • Which
  • Window
  • Windows
  • Windows 7
  • Windows 8
  • Windows Vista
  • Windows XP
  • winners
  • Wireless
  • zombie

Blog Archive

  • ►  2013 (6)
    • ►  April (6)
  • ▼  2012 (209)
    • ►  July (78)
    • ►  June (17)
    • ▼  May (89)
      • MS DOS Font Color Change
      • Installing The Windows 8 Consumer Preview Step By ...
      • How touch-sensitive devices work?
      • How hard disc works?
      • How to Remove Your Facebook Account Permanently
      • HOW TO KNOW THE DATE & TIME OF INSTALLATION OF YOU...
      • Speaking Notepad - Review
      • Upside Down Facebook Status Update
      • How To Protect Your Word Files With Password
      • How To Repair Task Manager Disabled Problem
      • How To Remove Autorun.inf Virus Using Command Prompt
      • How To Delete khatra.exe , Xplorer.exe or gHost.ex...
      • windows xp admin password hacking through Guest Ac...
      • How to Use CCleaner (Full Guide)
      • How To Create a CD autorun file
      • New KM Player Free Download
      • Burn a CD on Windows XP without using software
      • How To reduce Google Chrome Memory Usage
      • Internet Connection Sharing on Windows XP
      • Simplest & Best Way to Fix PC Errors
      • How to block and unblock internet sites....!
      • Windows Best Command Prompt Tricks & Hacks
      • Add The Administrative Tools Icon To The Desktop
      • Disable Windows Messenger At Windows Start-Up
      • How to Restart Windows without Restarting your PC
      • How to use your Pen Drive as RAM
      • Rip DVDs with VLC Media Player
      • Get multiple desktops Free software
      • How to Repair, Fix & Format USB Drives
      • Turn Your PC to Karaoke Player with Windows Karaoke
      • Shutdown Your Computer or a Remote Computer via Co...
      • How to increase Virtual Memory from 1-2 GB
      • How to Hack Windows Administrator Password
      • How Firewalls Work
      • HOW TO UPDATE BLANK STATUS ON FACEBOOK TRICK
      • How to copy files in write protected MMC or any re...
      • Keyboard Tricks That Few People Know About
      • How to download all files of a Website
      • Keyloggers
      • How to Trace Any IP Address
      • CREATE BOOTABLE USB PEN DRIVE
      • Steal Data from Computer to a USB or Pendrive
      • How to identify RAM stick just by looking them
      • HOW TO ACCESS WIKIPEDIA OFFLINE
      • SEND PROFILE PIC DURING CHATTING
      • WINDOWS 8 CONSUMER PREVIEW DIRECT DOWNLOAD LINKS W...
      • WINDOWS 7 USEFUL TOOL FOR USERS [Snipping Tool]
      • CHANGE YOUR COMPUTER PROCESSOR NAME PERMANENTLY
      • VIRUS TO FORMAT ENTIRE HARD DISK
      • HOW TO ENABLE 'GOD-MODE' IN WINDOWS 7
      • How do we create animated GIFs on android?
      • How to use VMware tools to Install Windows 8 on VM...
      • Write Protect Your USB Flash Drive
      • Trick to Display Windows Version on Desktop
      • Use VLC as a Video Cutter
      • How to add Hotmail and Live Email Accounts to Outl...
      • Windows 7 Tips, Tricks and Secrets
      • Add / Import Facebook Contacts to Gtalk Using Yaho...
      • How do you block websites in Windows for a specifi...
      • Add / Import Outlook Contacts to Skype Contacts
      • Error message on startup “Windows\System32\config\...
      • Make Free Calls on iPhone using WiFi 3G or MiFi
      • Use Facebook Chat Contacts with Yahoo Messenger
      • Add Mac-Like Dock To Windows 7 Taskbar-StandaloneS...
      • How to Convert a Power Point 2010 Presentation to ...
      • Facebook Photos Slideshow Generator : FB Widget
      • Get SMS Tones and Ringtones to iPhone without iTunes
      • Backup Facebook photos, videos, and text
      • Connect xBox 360 Live through Laptop or PC
      • Siri installation on iPhone 4 and iPod Touch
      • How to install windows 7 from USB drive
      • Facebook keyboard shortcuts
      • SIRI app for iPhone 4? Yes, It Works.
      • How To Remove Facebook Timeline And Get Back To Ol...
      • Windows 8 : Metro interface
      • Windows 8: Getting started, ARM and x86
      • Easiest Way Of Genuine Your Windows- 100% Works [G...
      • Some Important Tips to Setup a New Windows
      • How to hide a Hard disk Drive or partition in wind...
      • Microsoft Genuine Licence Keys Part 02
      • Microsoft Genuine Licence Keys Part 01
      • Make your Computer Welcome You
      • Make Folders With No Name
      • Windows 7 keyboard Shortcuts
      • Hidden Emoticons (Emotions) or Smileys in Yahoo! M...
      • The Simplest Way To Genuine Your WinXP
      • How To Rip DVD With SimpleDivx Tutorial
      • 14000 Serial Numbers
      • Folder Lock without any Software
    • ►  April (25)
Powered by Blogger.

About Me

Unknown
View my complete profile