luckily, they still have the rights to shutdown the PC programmatically otherwise I would be buggered. They then can see it and interact with it. The other task, running as the user, sees this and re-reruns the shutdown task under the user context. After several days on and off trying to get this to work, what I had to do was if another exe is running, that is launched under the user context when they logon, the shutdown task creates a text file and exits. This command works on all windows editions.
Log off, Shut Down, Switch User, Lock, and Restart Windows 7. Note that we can run this command from windows Run window also. The task shows a shutdown dialogue to the user and they can cancel, pause or ok, etc, the shutdown. When you log on to your computer you will be taken to the Windows Desktop. To log off, click the Start button, click the arrow next to the Shut down button (not the button itself), and select Log off. When you no longer need to use the computer, you can log off your account, which will close all your programs but not turn off the computer. We have a nightly shutdown task that runs interactively as system. Logging off and switching between account.
I have had to do some crazy things on our Windows 7 builds to get around this, thank you, Microsoft.
If you can access to your system but security isnt a big issue for you, you can turn off logon password protection and automatically logon on to Windows without entering. Firstly, Download Windows 7 password turn off software. Viewed 2k times 0 Is there a way of using group policy to set a Windows 7 AD attached desktop to logoff after 15+ mins I want the machine just go back to the login prompt after kicking off the user. It can turn off forgotten, lost or expired Windows 7 administrator and standard user password within several clicks. Now, you just can't run an interactive task like this, at least, not without possibly using some very extreme (and possible dodgy) techniques. Ask Question Asked 10 years, 9 months ago. In the old days, you could run an interactive task as system or another user and the currently logged on user would see and be able to interact with it. Selain itu, Anda menerima pesan berikut ini: 1 program masih harus ditutup: (Menunggu) Jendela Host tugas. Dalam skenario ini, proses logoff berhenti selama enam detik. Anda mencoba untuk mematikan, restart, atau log off dari komputer. Hi cocao117, one of the many irratations with Windows 7 is trying to do just what you are now. Anda memiliki komputer yang menjalankan Windows 7 atau Windows Server 2008 R2.