So lets suppose i do need to shut this system down

Info icon This preview shows pages 15–17. Sign up to view the full content.

So let's suppose I do need to shut this system down I'll enter the shutdown command and let's also suppose that I not only want to shut the system down but I want to start it back up again. So I'm going to use the -r option to reboot the system and I also want to provide a 30 second delay so that my users have an opportunity to save their work and get out of the system. So I'll use a /t followed by the number of seconds, 30 seconds, go ahead and press Enter. We're warned that we're about to be signed out because Windows is going to shut down in less than a minute. I'll click Close and the shutdown process is going to take place in 30 seconds now I'm going to go ahead and pause the recording at this point and we'll come back when the system has fully rebooted. Okay the system has now rebooted and I've logged back in and reopened my command prompt window with administrator privileges. Tasklist and Taskkill 8:59-13:18 Now the next set of commands we're going to look at allow you to manage processes from the command prompt and you already know that you can manage processes by using task manager but you can accomplish a similar thing using commands at the command prompt. For example let's suppose you have a particular process running on the system the process is hung, you can't exit out of it and you need to kill it manually. This can be done from the command prompt. The first thing you need to do is to generate a list of running processes using the tasklist commandI'm actually going to expand out my command window here so we can see more of the output of the commands that we're going to enter. So I run tasklist and I see a list of all the processes currently running on the system. So at this point I need to identify which one it is that I want to kill. Which process is hung? For sake of demonstration let's assume that I loaded my Microsoft Paint programright down here and for whatever reason it is hung and I need to kill it. So I need to identify the process associated with Microsoft Paint and here it is right here. Specifically we need to identify its process ID number or PID and right now MS Paint has a PID number of 3572. Now that we've identified this information we can go ahead and kill this task and I can kill it either using its image name right here mspaint.exe or its PID number, 3572. This is done using the task kill command. Now when I enter the task kill command prompt I have to specify which process it is that I want it to go out and kill. One option is to kill the task by its image name in which case I use the /im option followed by the image name of the process that I want to kill which would be mspaint.exe or I can kill it by process ID number in which case I use /pid followed by the process ID
Image of page 15

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

number of that process. Which in this case is 3572. Let's go ahead and press Enter and notice when I do the MS Paint icon disappears from the task bar because the process has been killed. This happened because a termination signal was sent to the process telling it to close.
Image of page 16
Image of page 17
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '14
  • Task Manager, Hard disk drive

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern