I’ve shown you how to log off of your user account via a shortcut and, if you’re on a computer with multiple user accounts, you can also create a shortcut to quickly switch users. This utility disconnects the current session (it does not log off the account) when no command-line arguments are supplied.
How To
Follow along with these few short steps:
- Right-click the Desktop and click New then Shortcut.
- In the “Create Shortcut” dialog, enter the following and click the “Next” button:
- In the “Select Title for the Program” dialog, enter a descriptive name and click the “Finish” button.
- Right-click the shortcut and click “Properties”.
- Under the Shortcut tab, click “Change Icon . . .” This will pop-up the following error:
- After clicking “OK”, a dialog should open displaying all of the icons in the location:
%SystemRoot%\system32\SHELL32.dll
- Find one that you like and click the “OK” button.
%SYSTEMROOT%\system32\tsdiscon.exe
Options
You could get nutty and place this shortcut in your Quick Launch folder by typing Windows Key+R, then:
"C:\Documents and Settings\%username%\Application Data\Microsoft\Internet Explorer\Quick Launch"
Command Line Options
You can also use tsdiscon.exe in a batch file. Here are the optional perimeters:
-
TSDISCON [sessionid | sessionname] [/SERVER:servername] [/V]
-
-
sessionid The ID of the session.
-
sessionname The name of the session.
-
/SERVER:servername Specifies the Terminal Server (default is current).
-
/v Displays information about the actions performed.
-
-
Example: tsdiscon 3 /server:cprsrv02 /v