Vista logoff shortcut




















If you want to delay the time for restart, shutdown, log off, or hibernate Vista only , you can use the -t switch to set a timeout delay for the command to execute. In the example above, adding timeout to the command for 10 seconds would look like this:. If you prefer to use the the keyboard, you can easily add a keyboard shortcut to the new shortcut by following the steps outlined in the article Create Keyboard Shortcuts on Windows.

I don't know of anything that can prompt the user to cancel other than writing code , but what you can do is open up a command prompt and type. Or create a second shortcut using the above command. This way you can quickly click it instead of opening a command prompt.

For what ever reason, you user account does not have the right to shutdown the system when executing the shutdown command which is interesting since you can probably shut down from the Start menu. Your best work around is to set run the shortcut with alternate credentials admin account when it is launched. To do this:. After clicking on the shortcut, you will be able to select an account with admin rights and need to enter the password. Ya I tried that, selecting an admin account, but it still does not shut down when clicking the shortcut icon nothing happens, no message appears.

The administrator should appear in the welcome menu, and usually they're not password protected. Get in and change your account to an admin account. Type in. In vista it is possible to run the shortcut as administrator by right clicking the shortcut and choosing run as administrator.

Microsoft has a hotfix for this but it only will work on SP1. This does not accept user name and passwords so it uses the credentials of the current logged in user on the host system. How to force logoff without waiting for user confirmation to terminate the running applications? The above commands do forced logoffs. They kill all the applications one by one and at the end logs off the user. Open Task manager, click on Users, Right Click, manage user account, it will open control panel.

It the path above, open cmd from here. Login again. It works. 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. I have win7 and discovered the use of tsdiscon a couple of days ago.

It works great but, playing two copies of a game, I really need a faster switch. Sometimes it is only seconds, other times it is more like 10, plus the time to enter the password. I also have two users using one pc, so swiching is a standard task. Both users are password protected, but they trust each other, so there is no reason why one user should not be able to log into the other account. UAC does not have to be disabled. I just wrote this and it works but with very little testing right now… P.

Nice one!



0コメント

  • 1000 / 1000