Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to prevent users from shutting down in a Virtual Machine

Posted on 23/01/202017/08/2026 Christian By Christian 2 Comments on How to prevent users from shutting down in a Virtual Machine
  1. Home
  2. Windows
  3. How to prevent users from shutting down in a Virtual Machine
prevent users

To shut down or the power off button helps to remove power from a computer’s main components in a controlled way. After a computer is shut down, main components such as CPUs, RAM modules, and hard disk drives are powered down, although some internal components, such as an internal clock, may retain power. Please see Batch rename multiple files on Windows, and how to fix WinRM cannot process the request: The following error occurred while using Kerberos authentication, cannot find the computer,

The shutdown command can be executed within a command shell in windows “shutdown.exe” and it is located in %windir%\System32\shutdown.exe. The following steps below are ways to prevent users from shutting down virtual machines.

Launch group policy editor and navigate to the following path.

  • Local Computer Registry
  • Computer Configuration
  • Administrative Templates
  • Start Menu and Taskbar

Search for “Remove and Prevent access to shutdown, restart, Sleep and Hibernate command.

shutting down

The result would be as shown below when you click on the power button to initiate a shutdown.

A screenshot of the Windows taskbar showing a message that states 'There are currently no power options available.'

To take effect immediately, ensure to enter gpupdate /force from the command line interface (CMD).

Kindly refer to these related guides: How to use command prompt to shutdown and restart your computer, Unable to Shutdown a HyperV Virtual Machine, how to logoff, restart, or shutdown Windows PC or Server remotely via Command Prompt and PowerShell, and how to disable the Windows welcome screen and shutdown screen.

Furthermore, I hope you found this blog post on how to prevent users from shutting down in a Virtual Machine helpful. Please let me know in the comment session if you have any questions.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows Tags:restart, Restart option windows server, shutdown, Virtual Machine, Windows 10

Post navigation

Previous Post: All you need to know before deploying Windows Hello for Business Key and Certificate Trust
Next Post: Application User Model ID: How to find the AUMID of an installed UWP App

Related Posts

  • image 16
    How to Fix Windows Error 0x80070057 Windows
  • Feature image LSA
    How to configure additional LSA Protection Security | Vulnerability Scans and Assessment
  • perform0
    How to work with Windows Performance Toolkit Windows
  • edge7
    How to enable Adblocker on Microsoft Edge Windows
  • How to keep Apps up to date on Windows
    How to keep Apps up to date on Windows devices Windows
  • Uninstall MicrosoftDefenderUpdate
    Remove Microsoft Defender Update on Windows 10 & Server Windows

More Related Articles

kerberosdelegation Kerberos Delegation: A Comprehensive Guide Web Server
tsx Error Code: 0x80070035: MDT unable to access the Log share, the Network Path was not found Windows
How do I disable credentials from Remote Desktop Disable credential Prompts for Remote Desktop Connections Windows
Featured image Periodic scanning How to enable or disable Windows Defender Antivirus Scanning periodically on Windows via Windows Settings Security | Vulnerability Scans and Assessment
Featured image externaldis How to fix the external display not working on Windows 11 Windows
RecomveRDSlicense How to remove RDS Client Access Licenses from RDS Server Windows

Comments (2) on “How to prevent users from shutting down in a Virtual Machine”

  1. Avatar photo Joe Bob says:
    08/02/2022 at 9:01 PM

    Super useful hint. Thanks for sharing!

    Log in to Reply
    1. chris Christian says:
      08/02/2022 at 10:01 PM

      I am glad you found this guide useful Joe Bob!

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • lampstack feature lamp stack ubuntu
    How to Install LAMP Stack on Ubuntu 18.04 Linux
  • Featured image 1
    Add and Remove Folders in Favorites in Microsoft Outlook Windows
  • screenshot 2020 03 31 at 22.22.43
    How to create, edit and delete a scheduled task via the Command Prompt Windows Server
  • Trellix ePO Repair and reinstall
    Fix Trellix ePO DAT and Engine Packages missing Security | Vulnerability Scans and Assessment
  • FEATUREIMAGE
    How to work with Azure Cognitive Service AWS/Azure/OpenShift
  • VBscript fixed and working in WinPE
    Windows PE working for Windows 11 and Windows Server 2022 Windows Server
  • image 36
    Keepalive Settings: Understanding keepalive configuration Linux
  • What Happens if You Turn Off Your Computer During windows update
    What Happens if You Turn Off Your Computer During an Update Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,746 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.