/
/

How to Enable or Disable “Last Active Click” on the Taskbar in Windows 11

by Ann Conte, IT Technical Writer
How to Enable or Disable “Last Active Click” on the Taskbar in Windows 11 blog banner image

Instant Summary

This NinjaOne blog post offers a comprehensive basic CMD commands list and deep dive into Windows commands with over 70 essential cmd commands for both beginners and advanced users. It explains practical command prompt commands for file management, directory navigation, network troubleshooting, disk operations, and automation with real examples to improve productivity. Whether you’re learning foundational cmd commands or mastering advanced Windows CLI tools, this guide helps you use the Command Prompt more effectively.

When you click an application in the taskbar that has multiple windows open (e.g., a browser with multiple windows), Windows 11 will, by default, give you a preview of all the windows. This feature allows you to choose which window to open and work on.

However, this function may feel clunky and inefficient for some users. Because of this, Windows 11 has the last active click taskbar feature. When you activate that feature, clicking on an application with multiple windows will automatically open the last active window instead of showing you all available windows.

4 ways to enable or disable the Windows 11 last active click function

To enable or disable the last active click function in Windows 11, you will need to edit the Windows Registry. This can be done using the Registry Editor, Command Prompt, Windows PowerShell, or by creating a .reg file. There is currently no native GPO that can manage this setting.

📌 Prerequisites:

  • This guide applies to all versions of Windows 11.
  • You’re going to need administrator privileges to manage this setting. To check if you have the necessary permissions, open the Start Menu > Settings > Accounts. The word “Administrator” should be printed under the username.
  • Familiarity with the Registry Editor, Command Prompt, and Windows PowerShell is preferable.

📌 Recommended deployment strategies:

Click to Choose a Method 💻

Best for Individual Users

💻💻💻

Best for Enterprises

Method 1: Registry Editor (Per-User)
Method 2: Using Command Prompt
Method 3: Using Windows PowerShell
Method 4: Create a .reg file

Method 1: Using the Registry Editor (per user)

📌 Use Case: This method is applicable to advanced users or IT administrators working with managed devices.

  1. Open the Start Menu and search for Registry Editor to open the program.
  2. Navigate to this address: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
  3. Find the LastActiveClick value and double-click it. If you can’t locate it, follow these steps to create it:
    1. Right-click Advanced > New > DWORD (32-Bit) Value.
    2. Name it LastActiveClick.
  4. Change the value to 1 to enable the feature. To disable it, change the value to 0.
  5. Click OK.
  6. You can now close the Registry Editor. Restart the computer to apply the changes.

Method 2: Using Command Prompt

📌 Use Case: This method can be used in enterprise environments. It’s ideal for script-based deployments.

  1. Open the Start Menu and search for Command Prompt.
  2. Right-click Command Prompt > Run as administrator.
  3. To enable the feature, type this and press Enter:

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LastActiveClick /t REG_DWORD /d 1 /f

To disable, type this and press Enter:

reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LastActiveClick /f

  1. You can now close Command Prompt. Restart the computer to apply the changes.

Method 3: Using Windows PowerShell

📌 Use Case: This method is ideal for enterprise environments. You can deploy the changes in automated and remote environments using a remote PowerShell tool.

  1. Open the Start Menu and search for Windows PowerShell.
  2. Right-click Windows PowerShell > Run as administrator.
  3. To enable the feature, type this and press Enter:

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LastActiveClick" -Value 1 -Type DWord

To disable the feature, type this and press Enter:

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LastActiveClick" -Value 0 -Type DWord

  1. You can now close Windows PowerShell. Restart the computer to apply the changes.

Method 4: Create a .reg file

📌 Use Case: This method can be used in enterprise environments. You can run the .reg file on all your managed devices using your preferred endpoint management tool.

  1. Open the Start Menu and search for Notepad to open the program.
  2. To enable the feature, type this:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"LastActiveClick"=dword:00000001

To disable the feature, type this:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"LastActiveClick"=dword:00000000

  1. Click File > Save as.
  2. Name it LastActiveClick_Manage.reg.
  3. Open the drop-down menu next to Save as type, and select All files.
  4. Click Save.
  5. You can now close Notepad.
  6. Navigate to where you saved the .reg file and double-click it. This will run the file and automatically make changes to the Windows Registry.

⚠️ Things to look out for

Risks Potential Consequences Reversals
A user may make an incorrect edit to the Windows Registry. If incorrect edits are made to the Windows Registry, it may lead to incorrect settings or system instability. Create a backup of the Windows Registry before editing it. You can use the backup to restore the Windows Registry if any unintended changes are made.

Additional considerations before enabling or disabling the last active click feature in the taskbar

  • This setting will only affect applications that have multiple open windows.
  • This change applies per user. Deploy the change by using scripts or an endpoint management tool to apply it to all users in a system.
  • There is no native GPO that can manage this setting. It’s best to edit the Windows Registry instead.

Streamline user workflows by enabling the last active click feature in the Windows 11 taskbar

When you enable the last active click feature in your Windows 11 taskbar, it will automatically open your last active window in that application instead of showing you a preview of all of that application’s open windows. Some users may find that keeping this feature enabled is more efficient and easier for their workflows. Other people, on the other hand, are more used to the default option of seeing all open windows in that application.

This setting is mainly managed by editing the Windows Registry, and there are multiple ways to do that. Individual users can simply change the value using the Registry Editor. IT administrators working in enterprise environments, on the other hand, can deploy a script through either the command prompt or Windows PowerShell. They can also create a .reg file and run it through their preferred endpoint management tool.

Related Links:

You might also like

Ready to simplify the hardest parts of IT?

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