https://github.com/akopetsch/windowsterminaladmin
Adds 'Open in Terminal as administrator' to the extended (shift-right-click) context menu of a directory (background) in Windows Explorer.
https://github.com/akopetsch/windowsterminaladmin
cmd command-line console terminal windows windows-console windows-terminal wsl
Last synced: about 2 months ago
JSON representation
Adds 'Open in Terminal as administrator' to the extended (shift-right-click) context menu of a directory (background) in Windows Explorer.
- Host: GitHub
- URL: https://github.com/akopetsch/windowsterminaladmin
- Owner: akopetsch
- License: mit
- Created: 2025-02-25T13:18:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T14:25:08.000Z (over 1 year ago)
- Last Synced: 2025-06-26T01:02:11.485Z (about 1 year ago)
- Topics: cmd, command-line, console, terminal, windows, windows-console, windows-terminal, wsl
- Language: PowerShell
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WindowsTerminalAdmin
Adds ``Open in Terminal as administrator`` to the extended (shift-right-click)
context menu of a directory (background) in Windows Explorer.

## Background
As the time of writing, Windows lacks a context menu entry to open Windows
Terminal as an administrator in a directory. Two issues ([#11024], [#9903])
of the GitHub repository [microsoft/terminal] are covering that.
[microsoft/terminal]: https://github.com/microsoft/terminal
[#11024]: https://github.com/microsoft/terminal/issues/11024
[#9903]: https://github.com/microsoft/terminal/issues/9903
## Installation
Obtain a local copy of this repository either by cloning or by downloading it as a
[ZIP file](https://github.com/akopetsch/WindowsTerminalAdmin/archive/refs/heads/main.zip).
Run [src/install.ps1] as administrator:
```console
PS > cd .\src\
PS > .\install.ps1
```
[src/install.ps1]: src/install.ps1
## Usage
1. Shift-right-click on a directory or on a directory background in Windows Explorer.
2. Click ``Open in Terminal as administrator``.
## Uninstallation
Run [src/uninstall.ps1] as administrator:
```console
PS > cd .\src\
PS > .\uninstall.ps1
```
[src/uninstall.ps1]: src/uninstall.ps1