How do you create a shortcut to "LOG OFF" in windows 2000?

AnMig

Golden Member
Nov 7, 2000
1,760
3
81
I googled this but was unable to find any answers.

I want to be able to log off my windows 2000 pc with just a double click.
I know about the ctrl-alt-delete-L, but want a shortcut to avoid the using the keyboard.

Its a shared PC in a workroom, that i need to log off everytime I leave the room (at least 20 times a day)


Thanks

the closest answer I got was create a shortcut using "c:\winnt\system32\shutdown.exe -l -t 0" but it says it cannot be found.

Thanks
 

Woodie

Platinum Member
Mar 27, 2001
2,747
0
0
C:\WINDOWS\system32\logoff.exe

Oops..that's on XP....but it also exists on W2K Server...so you should be all set..
 

AnMig

Golden Member
Nov 7, 2000
1,760
3
81
C:\WINDOWS\system32\logoff.exe

sorry no go file cannot be found

OS is Windows 2000 5.00.2195, service Pack 4

I did a search for logoff.exe cant find it on my computer
 

networkman

Lifer
Apr 23, 2000
10,436
1
0
To shut down Win2K, you need to use either the shutdown.exe utility that?s provided in the Resource Kit or, if you don?t have the Resource kit, you can download and use the freeware psShutdown utility from Sysinternals (http://www.systernals.com).

The psShutdown utility can be found at the following URL: http://www.sysinternals.com/nt...eware/psshutdown.shtml


Edit1: When I downloaded the utility, I created a batch file with the following single line:
c:\winnt\system32\psshutdown.exe -o
I put a shortcut to it in my Quick Launch bar so with a single click I can initiate a LogOff. :)

Edit2: A friend of mine came back with a .VBS script you could use so that you wouldn't need a 3rd party utility.

-----

set WshShell=CreateObject("WScript.Shell")
WshShell.SendKeys"^{ESC}ul{ENTER}"

-----


 

bkstntje

Junior Member
Jan 6, 2005
1
0
0
Isn't the "Display logoff" option of the Start Menu what you're looking for?
(right click task bar >> properties >> advanced tab >> select "Display Logoff" in Start Menu Settings box)
 

Woodie

Platinum Member
Mar 27, 2001
2,747
0
0
You can't find Logoff.exe? Odd. It's on both my work XP, my home XP, home W2K Server....

bkstntje has another good idea. That's what I usually use: Ctrl-Esc - L - L
 

networkman

Lifer
Apr 23, 2000
10,436
1
0
want to be able to just doubleclick a shortcut then leave the room.

I was trying to provide a solution meeting exactly what he wanted, not trying to provide alternatives. ;)

 

AnMig

Golden Member
Nov 7, 2000
1,760
3
81
network man thanks for the post. I initially thought I could just create a shortcut to the logoff.exe but later on learned its more complicated in w2k.

I was able to download the resource kit but worried our network personel might take offence if I installed it in a shared computer.

I will try the shutdown utility you linked. Thanks again.



edited spelling
 

AnMig

Golden Member
Nov 7, 2000
1,760
3
81
"The psShutdown utility can be found at the following URL: http://www.sysinternals.com/nt...eware/psshutdown.shtml


Edit1: When I downloaded the utility, I created a batch file with the following single line:
c:\winnt\system32\psshutdown.exe -o
I put a shortcut to it in my Quick Launch bar so with a single click I can initiate a LogOff. "


this worked perfectly, exactly what I was looking for. (desktop shortcut- to doubleclick and log off a user in w2k)

Thanks a lot, will suggest this solution to our network guys. This is better than leaving workstations open as most of the providers do in our office.
Thanks again
 

AnMig

Golden Member
Nov 7, 2000
1,760
3
81
Thanks again for network man

the script he posted worked like a charm, just copy and paste in note pad, then change ext to .vbs
it so simple

set WshShell=CreateObject("WScript.Shell")
WshShell.SendKeys"^{ESC}ul{ENTER}"