Prevent Accidental Shutdown in VM

Contents

    As an administrator, open power shell window and run:

    Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "HidePowerOptions" -Value 1 -Force

    This causes only “disconnect” to be available from the power button in a Windows VM.

    Updated on July 22, 2025

    Leave a Reply

    Your email address will not be published. Required fields are marked *