Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Windows » How to prevent users from shutting down in a Virtual Machine
  • windows1019h2
    Synchronize your Domain Controller with an external time source Windows Server
  • FQWD
    Logoff or Restart or Shutdown Windows PC remotely Windows
  • banner
    Prevent Microsoft Edge from sending your Search data to Microsoft Windows
  • windows 10 2018 insider wallpaper
    How to create an Environment variables in Windows Windows
  • Encapsulationset to Auto
    Error – Command rejected: An interface whose trunk encapsulation is “Auto” can not be configured to “trunk” mode Network | Monitoring
  • drivelock
    How to perform DriveLock quick setup Security | Vulnerability Scans and Assessment
  • exchange 2016 1
    How to Block Change Password for Specific Exchange Users Network | Monitoring
  • iso10
    Mount an ISO image in Windows 10 and 11 Windows

How to prevent users from shutting down in a Virtual Machine

Posted on 23/01/202025/09/2023 Christian By Christian 2 Comments on 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.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to 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

  • BitLocker unlock
    How to unlock a fixed drive protected by BitLocker Windows
  • Configure Windows Server with Sconfig
    How to Configure Windows Server Core using SConfig Windows
  • image 8
    Enable or disable Core Isolation Memory Integrity in Windows 10 and 11 Windows
  • GPO Blocked Downloads 3
    How to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022 Windows
  • image 37
    There was an error opening the Trusted Platform Module snap-in: You do not have permission to open the Trusted Platform Module Console Windows
  • self signed sslcert
    Generate self-signed certificate and export in PFX format via PowerShell [Part 2] Windows

More Related Articles

BitLocker unlock How to unlock a fixed drive protected by BitLocker Windows
Configure Windows Server with Sconfig How to Configure Windows Server Core using SConfig Windows
image 8 Enable or disable Core Isolation Memory Integrity in Windows 10 and 11 Windows
GPO Blocked Downloads 3 How to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022 Windows
image 37 There was an error opening the Trusted Platform Module snap-in: You do not have permission to open the Trusted Platform Module Console Windows
self signed sslcert Generate self-signed certificate and export in PFX format via PowerShell [Part 2] 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

sysadmin top30a

  • windows1019h2
    Synchronize your Domain Controller with an external time source Windows Server
  • FQWD
    Logoff or Restart or Shutdown Windows PC remotely Windows
  • banner
    Prevent Microsoft Edge from sending your Search data to Microsoft Windows
  • windows 10 2018 insider wallpaper
    How to create an Environment variables in Windows Windows
  • Encapsulationset to Auto
    Error – Command rejected: An interface whose trunk encapsulation is “Auto” can not be configured to “trunk” mode Network | Monitoring
  • drivelock
    How to perform DriveLock quick setup Security | Vulnerability Scans and Assessment
  • exchange 2016 1
    How to Block Change Password for Specific Exchange Users Network | Monitoring
  • iso10
    Mount an ISO image in Windows 10 and 11 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,839 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

AWS 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.