Skip to main content

Log Off PC using CMD

To Log Off your Computer from CMD. Follow the steps mentioned below:
  • Open CMD
  • Type shutdown -l -t 120 in CMD
  • Press Enter
  • A dialog box will appear showing that windows is Logging Off.
  • After 120 seconds your Computer Log Offs.
  • Change time according to your requirement.
You can also perform it using Batch file. Follow the steps mentioned below:
  • Open Notepad
  • Type shutdown -l -t 120 in Notepad
  • Save it as logoff.bat
  • Open logoff.bat
  • A dialog box will appear showing that windows is Logging Off.
  • After 120 seconds your Computer Log Offs.
  • Change time according to your requirement.