How to Add Windows Terminal (Admin) to the File Explorer Context Menu in Windows 11?

5/5 - (51 votes)

Windows Terminal is a powerful tool for command-line users in Windows 11, allowing access to multiple command-line interfaces in a single window. Adding Windows Terminal to the context menu of the File Explorer can make it more accessible and convenient to use. In this guide, we will go through the steps to add Windows Terminal (Admin) to the File Explorer context menu in Windows 11.

Add Windows Terminal (Admin) to File explorer context menu:

To add “Windows Terminal (Admin)” to the File Explorer context menu, follow these steps:

  1. Open Notepad or any other text editor.
  2. Copy and paste the following text into the text editor:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt_admin]
@="Windows Terminal (Admin)"
"Icon"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.12.2652.0_x64__8wekyb3d8bbwe\\Images\\Terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt_admin\command]
@="C:\\Users\\<username>\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d . -p \"Windows PowerShell\" -e powershell -Command \"Start-Process 'powershell' -ArgumentList '-NoExit', '-Command', 'Start-Process ''cmd.exe'' -Verb runAs'\""

Note: Replace <username> with your actual Windows username.

  1. Save the file with a .reg file extension (such as wt_admin.reg).
  2. Double-click the file you just created to add the registry entries to your Windows Registry.
  3. When prompted to confirm that you want to make changes to the registry, click “Yes.”
  4. The “Windows Terminal (Admin)” option should now be available when you right-click on an empty space in File Explorer.

Note: This process assumes that you have Windows Terminal installed and that the installation path is the default location. If you have installed Windows Terminal in a different location, you will need to update the path in the registry entries accordingly.

Next, save the file as TerminalAdmin.reg on your Desktop

Double-click on the file to merge, and you’ll get one confirmation pop-up, click on Yes to confirm.

Next, restart your computer once, post restart, right-click on any file or folder you’ll see the “Open in Terminal Admin”.

If you want to remove this option just follow the below-mentioned steps.

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\shell\WindowsTerminalAsAdmin]

[-HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminalAsAdmin]

Next, save the file as RemoveTerminalAdmin.reg on your Desktop.

Double-click on the file to merge, and you’ll get one confirmation pop-up, click on Yes to confirm.

Next, restart your computer once, post restart, “Open Windows Terminal Admin” option will be removed from the right-click context menu.

Conclusion

In conclusion, adding Windows Terminal (Admin) to the File Explorer context menu in Windows 11 is a useful way to quickly access the command line with administrative privileges. By following the simple steps mentioned above, you can easily add the option to your context menu and save time when running commands. This can be especially helpful for power users who frequently use the command line to perform various tasks.

Mohamed SAKHRI

my name is Mohamed SAKHRI, and I am the creator and editor-in-chief of Easy Tech Tutorials. As a passionate technology enthusiast, I have been blogging for some time now, providing practical and helpful guides for various operating systems such as Windows, Linux, and macOS, as well as Android tips and tricks. Additionally, I also write about WordPress. I am currently 35 years old.

Leave a Comment