Skip to content

TechDirectArchive

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

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

How to prevent users from shutting down in a Virtual Machine

Posted on 23/01/202025/09/2023 IT Expert By IT Expert 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. The shutdown command can be executed within a command shell in windows “shutdown.exe” and it is located in %windir%\System32\shutdown.exe. 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.

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.

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

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.

Rate this post

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
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
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

  • credentialguard
    Enable or disable Windows Defender Credential Guard Security | Vulnerability Scans and Assessment
  • Screenshot 2022 04 26 at 12.04.14
    Differences between Directory Services and Databases Windows
  • domain14 1
    How To Configure a Domain Password Policy Windows
  • Screenshot 2022 04 27 at 02.18.50
    Why does MBAM not automatically re-encrypt MBAM or Bitlocker-protected devices? Windows
  • img 5be0c6cdb96d8
    Is BitLocker Enabled? How to view BitLocker Disk Encryption Status in Windows Windows
  • Edge browser
    Enable or disable Microsoft Edge from showing Web Content Windows

More Related Articles

credentialguard Enable or disable Windows Defender Credential Guard Security | Vulnerability Scans and Assessment
Screenshot 2022 04 26 at 12.04.14 Differences between Directory Services and Databases Windows
domain14 1 How To Configure a Domain Password Policy Windows
Screenshot 2022 04 27 at 02.18.50 Why does MBAM not automatically re-encrypt MBAM or Bitlocker-protected devices? Windows
img 5be0c6cdb96d8 Is BitLocker Enabled? How to view BitLocker Disk Encryption Status in Windows Windows
Edge browser Enable or disable Microsoft Edge from showing Web Content 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

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • maxresdefault 2 5
    Why am I unable to ping the Public IP Address of an EC2 instance AWS/Azure/OpenShift
  • How To Put Multiple OS ISO Files In One Bootable USB Disk
    USB Drive: Create a Multiboot with Multiple OS ISOs Windows
  • elasticsearch error feature
    Elasticsearch: How to stop systemd service start operation from timing out Linux
  • Smartscreen defender blocking application
    Unable to run downloaded Programs due to Defender SmartScreen Windows
  • veeam
    Error 1064: An exception occurred in the service when handling the control request Backup
  • jooblejobs
    Find your dream job with Jooble JIRA|Confluence|Apps
  • KIOSK AssignedAccess
    How to set up a Single App Kiosk Mode Configuration using a Local Account / MDM Bridge WMI Provider Windows
  • banner
    How to deploy Folder Redirection in Windows 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,796 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

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

Copyright © 2025 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.