Tasklist is a simple command that is probably more useful when used across a network of computers. This command allows you to see running commands on a locked or logged in computer. For me, I found this beneficial when I wanted to find out what was running on a specific computer that was locked before I logged in. By using this, you can prevent loss of data when logging into a locked computer on a network. Just open up command prompt and type in the following:
tasklist /s computername
Now you know that no important programs are open and no data will be lost when logging off the user. It’s probably safe to say that you can now log off that locked computer.