I'm running Windows 7 Ultimate. I found out how to disable the Guest user from shutting down at all, but then they can't shutdown even if Admin account is logged off.

Edit: To clarify a little, say I want to give my PC to someone, I usually click on Switch User and log in using the Guest account. That way, they can't access my account as it asks for a password. I want that in such a case, they shouldn't be able to shut down the PC as my admin account is still logged on.

However, if someone else boots up the PC themselves and uses the Guest account, then they should be able to shut it down too, as my Admin account hasn't been logged on.

  • Please add how to disable the Guest user from shutting down. – Don't Root here plz... Apr 13 '16 at 13:27
  • thewindowsclub.com/… – Cerberus Apr 13 '16 at 13:28
  • @Private - We don't need that information to answer this question. – Ramhound Apr 13 '16 at 13:46
  • @Cerberus - its not clear what your end goal is. The title of the question indicates that an Administrator account is logged in, so it would be as simple as, switching the user to the Administrator account. – Ramhound Apr 13 '16 at 13:47
  • 1
    Your end goal isn't feasible. You can either give the power to the user to shutdown the machine or take it away. The group policy that controls this permission is a Allow Deny type permission. – Ramhound Apr 13 '16 at 14:00

Got my question answered here -

This is the correct method. It is also robust in that it is unconditional. If you wish to have your cake and eat it then the Guest account must use a powerful "agent" to perform the shutdown task. A scheduled task would be such an agent. It could work like so:

  1. Create a scheduled task that runs Script1 to perform these tasks:
  2. Check if the file C:\Shutdown\Shutdown.txt exists.
  3. If it does not, exit from the script.
  4. If it does, delete Shutdown.txt.
  5. Check if there is a live Administrator session. If yes, exit from the script.
  6. If there is no live Administrator session, shut down the machine, using shutdown.exe.
  7. The task must run once every 3 minutes under an admin account.
  8. Create a desktop shortcut for the Guest user that invokes Script2 to perform these tasks:
  9. Check if there is a live Administrator session.
  10. If it does, create a pop-up to inform the user that the machine cannot be shut down.
  11. If it does not, create the file C:\Shutdown\Shutdown.txt. The scheduled task will "see" this file and will shut down the machine.
  • Could you add the actual text. Assume that that link will die some day. – Hennes Apr 14 '16 at 18:14

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.