/
/

How to Add or Remove the Power Button on the Sign-in Screen in Windows 11

How to Add or Remove the Power Button on the Sign-in Screen in Windows 11 blog banner image

The Power button gives Windows 11 users convenient access to shutdown, sleep, hibernate, and restart commands. However, removing the Windows 11 sign-in screen button next to Power can also protect certain ecosystems (e.g., classrooms, store kiosks, etc.) from unauthorized shutdowns and unwanted logins.

Is your laptop not displaying the sign-in Power button? This article shows how to add the Power button on the login screen, several removal methods, and the best deployment strategies.

Manage the Power button/icon on the Windows 11 login screen

There are several ways you can add or remove the Power button on your sign-in screen. That said, you need to choose the best one that suits your needs and consider your organization’s IT constraints.

📌 Prerequisites:

  • Windows 11 Pro, Enterprise, or Education
  • Requires administrator privileges
  • Access to Group Policy or Registry Editor

📌 Recommended deployment strategies:

Click to Choose a Method

💻

Best for Individual Users

💻💻💻

Best for Enterprises

Method 1: Group Policy
Method 2: Registry Editor
Method 3: PowerShell
Method 4: .REG file

Method 1: Add or remove via Group Policy (recommended)

Your Group Policy Editor lets you customize the user experience, and in this case, it can add or remove icons from a workstation’s sign-in screen for added security.

📌 Use Case: System-wide changes

📌 Prerequisites: Windows 11 Pro, Enterprise, or Education; administrator privileges

  1. Press Win + R, type gpedit.msc, and press Enter.
  2. Navigate to: Computer Configuration > Administrative Templates > System > Power Management > Button Settings
  3. Double-click Do not display the power button on the sign-in screen to modify the policy.
    • To hide the Power button, choose Enabled.
    • To show the Power button, choose Disabled or Not configured.
  4. Click Apply, then OK.
  5. Run gpupdate /force or reboot the system to apply your changes.
    • Press Win + R, type cmd, and press Enter.
    • Type gpupdate /force.
    • Press Enter.

Method 2: Add or remove via Registry Editor

⚠️ Warning: Editing the registry can cause system issues. Create a backup before proceeding.

📌 Use Cases: Apply system-wide changes via low-level system settings.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  3. In the right-hand pane, double-click shutdownwithoutlogon.
    • If you don’t see it, do the following:
      1. Right-click on an empty space in the right-hand pane.
      2. Select New > DWORD value (32-bit).
      3. Name the new value “shutdownwithoutlogon”.
  4. Modify its value:
    • To remove the Power button from the sign-in screen, type 0.
    • To show the Power button on the sign-in screen (default), type 1.
  5. Restart the workstation to apply your changes.

Method 3: PowerShell script for automation

⚠️ Important: Ensure that you’re running PowerShell as an administrator. Otherwise, the command will fail silently.

📌 Use Cases: Deploy scripts to automate Registry changes for a single workstation or your entire enterprise.

  1. Press Win + R, type powershell, and press Enter.
  2. To hide the Power button, run the following script:
    Set-ItemProperty -Path “HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System” `
    -Name “shutdownwithoutlogon” -Value 0
  3. To show the Power button, run the following script:
    Set-ItemProperty -Path “HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System” `
    -Name “shutdownwithoutlogon” -Value 1

⚠️ Important: Ensure that you’re executing the correct PowerShell scripts, as slight typos will have consequences. Read the details of the risks here.

Method 4: .REG file

Outlining your desired Registry changes into a single, lightweight file can help reduce human errors, act as a configuration baseline, and facilitate enterprise rollouts.

📌 Use Cases: A simple workaround for rolling out system setting changes in case the Registry Editor or Group Policy Editor isn’t available.

📌 Prerequisites: Administrator privileges

  1. Press Win + S, type notepad, and press Enter.
  2. To have no Power button on the Windows 11 login screen, paste the following script:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
    “shutdownwithoutlogon”=dword:00000000
  3. To add the Power button on the login screen, paste the following script:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
    “shutdownwithoutlogon”=dword:00000001
  4. Save the file with a .reg extension.
  5. Run it as the current user.
  6. Restart Explorer.exe to apply changes.

⚠️ Things to look out for

Risks Potential Consequences Reversals
Locking shutdown/restart options Users become unable to power off/reboot through the UI
  • Restore from a .reg backup file.
  • Use System Restore.
  • Set the shutdownwithoutlogon value to 1 in the Registry.
PowerShell script typos Silent failures that can affect all user profiles
  • Run a reversal script.
  • Use Get-ItemProperty to reset values.
  • Use Safe Mode if the UI becomes inaccessible.
Incorrect syntax in the .reg file May break UI formatting
  • Restore from a .reg backup file.
  • Open Registry Editor and manually correct.

Additional considerations for configuring the Windows 11 sign-in screen button next to Power

Learn how removing the Power button can impact your organization’s digital environment with these important notes.

Lock screen vs sign-in screen

The methods listed above target the Power button icon located in the Windows 11 sign-in screen, which appears after the lock screen. Unless restricted by your security policy, you should be able to add or remove the Power icon from your device’s lock screen as well.

Kiosk mode

Kiosk Mode is a Windows 11 feature that restricts a device to a single app or program. Once active, the Power button is also hidden to prevent unwanted shutdowns. This state is ideal for advertising/storefront environments, so consider what it can do for your enterprise.

Event logs

After you remove the option from the sign-in page, workstations can still be turned off via the physical Power button and keyboard commands. When auditing any unauthorized activity, check your event logs, which list user account details on triggered processes.

🛑 | Troubleshoot system errors efficiently with NinjaOne’s guide on how to read event logs.

No GUI toggle

No graphical user interface (GUI) option exists for adding/removing the Power button from the sign-in page. This must be done via Group Policy or Registry Editor, or applied via PowerShell and .reg files. Read more on key power settings here.

Tailor the Power button icon on the Windows 11 login screen to your needs

By default, the Windows 11 sign-in screen button next to Power is available for ease of use. That said, restricting GUI features can give you more control over important system commands, especially when uninterrupted uptime is a priority.

Related topics:

FAQs

You can hide your sign-in options (e.g., PIN, password, picture password) via Group Policy.

Disable Shutdown: This option allows the system to be shut down without having to log on via the Group Policy editor (gpedit.msc).

Either check your Power button settings via Settings > System > Power & battery > Power button and lid settings or restore it using Group Policy.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).