Adds Open in Terminal as administrator
to the extended (shift-right-click)
context menu of a directory (background) in Windows Explorer.
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.
Obtain a local copy of this repository either by cloning or by downloading it as a ZIP file.
Run src/install.ps1 as administrator:
PS > cd .\src\
PS > .\install.ps1
- Shift-right-click on a directory or on a directory background in Windows Explorer.
- Click
Open in Terminal as administrator
.
Run src/uninstall.ps1 as administrator:
PS > cd .\src\
PS > .\uninstall.ps1