Remote desktop users – Log off from a remote machine

command line remote desktop
List the current log on session(s):

List the current log on session(s) on the remote desktop computer:
C:\>quser /SERVER:

To log off session listed in the previous step, use the following command. Here I am trying to log off the session 0.
C:\> logoff / 0 /V