Now be aware that there may be times when the task

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

View Full Document Right Arrow Icon
Now be aware that there may be times when the task kill command that we just used right here won't work. This may happen when the process is severely hung. Let's open up Paint again. So we have something to work with. We'll minimize it and let's run the tasklist command again because I've restarted the Paint program, it now has a different process ID number. The image name is the same but notice that the PID is now different because it's a new process. Let's suppose that MS Paint now is severely hung and the task kill command that we used earlier doesn't actually work. The task kill command we used earlier is a kind of a gentle termination process it's really the same as if I were to go up in to the top right corner of the application and click Close or come over here and click File, Exit. This task kill command basically sends the same signal and so if the process has really hung hard, then this command may not work. In this situation we may need to use the force kill option with the task kill command and that's done by using the /f option with the command. Basically /f will kill that process whether that process wants to exit or not and this time instead of specifying the PID number of the Paint program process let's use the /im option to specify its image name which is mspaint.exe and we'll press Enter and it tells us that the process has been terminated. You'll notice that the output of the command when used the /f option is a little bit different than when you send it the more gentle signal. See up here it says, sent termination signal to the process with PID 3572. Basically this command went to the process and said, if you don't mind would you please close? And we're hoping that the process says, okay. But down here we were a little bit rougher, we basically said you're going to close whether you like it or not and so their output's a little different. It says, hey that process has been terminated. Mstsc 13:19-15:06 Okay, in addition to managing processes from the command prompt you can also manage remote connections. Basically you can establish remote desktop connection with another computer on the network from the command prompt. The command you use to do this is called mstsc. Let's go ahead and look at the help screen for mstsc. Here you can see the usage for using the command. We enter mstsc followed by /v: and then we enter the DNS name or IP address of the computer that we want to connect to. We can also use the /w and /h options to specify the dimensions of the remote desktop window. You can also use the /span option to make the remote desktop window match the dimensions of the existing window on your local desktop. I hit OK. So let's go ahead and establish a remote desktop session with another computer on the network. I'm going to enter mstsc again but this time instead of /? we'll use /v: followed by the IP address of the remote host which is 10.0.0.46 press Enter. And I do have to log in to the remote
Image of page 16

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

View Full Document Right Arrow Icon
Image of page 17
This is the end of the preview. Sign up to access the rest of the document.

{[ 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