Shortcut for Logoff

J

Johnny Lingo

This is a correction of subject from my previous post.



I am looking for s shortcut to logoff

Similar this for Lock WorkStation:
%windir%\System32\rundll32.exe user32.dll, LockWorkStation

Or this for Shutdown:
C:\WINDOWS\SYSTEM32\shutdown.exe -s -t 0

Or this for restart:
%windir%\system32\shutdown.exe -r -t 0


Does someone know of a similar shortcut for logoff?
 
N

Nepatsfan

Johnny said:
This is a correction of subject from my previous post.



I am looking for s shortcut to logoff

Similar this for Lock WorkStation:
%windir%\System32\rundll32.exe user32.dll, LockWorkStation

Or this for Shutdown:
C:\WINDOWS\SYSTEM32\shutdown.exe -s -t 0

Or this for restart:
%windir%\system32\shutdown.exe -r -t 0


Does someone know of a similar shortcut for logoff?

Why not use shutdown.exe with the -l switch? Open a command
prompt window and enter shutdown.exe /?. In the list of
switches you'll find -l which will log off the current user.
Keep in mind that it can't be used to loggoff a user on a
remote machine

Nepatsfan
 
R

Ramesh, MS-MVP

Try "Shutdown.exe -l" as Nepatsfan said. Also, you may use the logoff.exe
file "Session Logoff Utility" present in the Windows\system32 folder. (Tip
from Doug Knox)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top