I used Dependency Walker aka depends. View all posts by Duncan Smart. Simple solution but works perfectly and the bonus is that you can use whatever key combination you want within reason rather than the one imposed by MS. Many thanks for this. Shame that for user switching Vista turns out to be a step backwards from XP. I suppose I could add it by downloading it, or activating certain windows services, but it should not be necessary. Where does the shortcut in the start menu point to? It works, so I should just be able copy that path or shortcut.
Does anyone who has a bit version of Vista have this tsdiscon. Do I have to be logged into a server for the code to work? Do you think the C code would work differently?
Ok, found a gotcha in the process. I had done an upgrade from Windows XP, and the copy of tsdiscon. Old folder. I corrected the shortcut and I was in business. Hey, thanks for the tip! Compiled it using csc. Great tip. Now, instead of either logging off or locking, it just drops us back to the switch user screen! To use the compiler method mentioned above first copy and paste the C code into notepad.
Save it as a. Then navigate to the folder containing csc. Now take your switchuser. It will out put a. Double clicking on the file will take you to the switch user screen. You may want to change the icon though as it just uses the default system icon. I thought you would like to know, I downloaded your switchuser. I ran the exe on this win7 machine and it works for this version of windoze too. Used the zipped exe since I have home premium no tsdiscon.
Ended up pinning the shortcut to the Start Menu, moved it to the top of the list. Piece of cake. Finally, after hundred sites telling me to add a shortcut with tsdiscon. I was wondering the following. I only have two users of my computer. Is it possible to modify your great tool to simply toggle between the two which would save the step of selecting the next user. Thanks in advance. I had the same idea, and I think it should be possible. It would involve running some elevated code perhaps using Task Scheduler.
I, too, have just two users and would find this VERY helpful. Perfect solution combination. I was looking for this answer from a week and finally I am very happy now. Thank you so much. Thanx man. Your awesome. I will get a lot of use out of this code!!
Much appreciation for your effort of putting this out there for us. OMG, thank you soooo much, spent half an hour already trying to find a command or api that does this! In XP with multiple displays, running tsdiscon. Thanks for the information, I have a Microsoft wireless keyboard and was trying to figure out a way to change users quickly.
SInce it has the 5 program keys when I pressed key 1 it asked for a command to use. Thank you, Duncan. Amazing how those 3 mouseclicks got extremely tiresome. I wonder if I should do away with those painful passwords now for even easier switching? This is great, and exactly what I was looking for. The code is nice too, not having to download strange files is nice. However, it gets me wanting more: is it possible to add a step after the disconnect to specify the next account to login with?
Our home PC is shared just like yours between the wife and I with a separate admin account , so it would be neat to save another click and just login straight to the opposite account. I guess it would mean adding an argument to the executable. Hi, Duncan: Thank you for your elegant solution.
And many thanks also for the specific CSC. You might be interested to know that this works on Windows 7, too. I am using Home Premium 6. Any way to fix? Cool shortcuts, very useful. Thanks a bunch!!! Thanks, keep up the good posts! You can also make the process automatic with Task Scheduler. Thank you. Let me show you how. When you try to switch user using default options, Windows automatically executes a built-in tool called tsdiscon.
Note: If you are running Windows Home version, you will not have access to the tsdiscon. Since we need that file to create user switcher desktop shortcut, download it from here. Alternatively, you can also copy the file from System32 directory from a Pro or Enterprise version of Windows. To create desktop shortcuts, we need to use the create shortcut wizard.
In the location field, type in the following location. Rather than using the full file path, we are using an environment variable to make things easier. Click on the Next button to continue. Now, name the shortcut anything you want. In my case, I named the shortcut as User Switcher. That is it. You are done creating a desktop shortcut for switching users. Double-click on the shortcut to access the user switcher screen where you can select the user account you want to switch to.
However, the default application icon is generic and frankly not that good looking.
0コメント