Shutdown Your Computer or a Remote PC via Command Prompt
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 .