OpenAsAdmin is a Windows command-line tool that allows you to open any file with administrator privileges using its associated application. It can also be installed to the right-click context menu for quick access.
- ✅ Open any file with administrator privileges
- ✅ Support for installing to the right-click context menu
- ✅ Support for uninstalling from the right-click context menu
- ✅ Automatically uses the file's associated application
- Download the latest version of the executable from the Releases page
- Save the downloaded
OpenAsAdmin.exefile to your preferred location - Navigate to the directory where
OpenAsAdmin.exeis saved - Run the installation command:
OpenAsAdmin.exe install -n "Open as Administrator"- Right-click on any file
- Select "Open as Administrator" (or the name you specified during installation)
OpenAsAdmin.exe open -f "path/to/your/file.txt"OpenAsAdmin.exe install --name "Menu Name" [-n "Menu Name"]--nameor-n: The name displayed in the context menu (required)
OpenAsAdmin.exe uninstallOpenAsAdmin.exe open --file "File Path" [-f "File Path"]--fileor-f: The path of the file to open (required)
- Clone the repository:
git clone https://github.com/JerryJian/OpenAsAdmin.git- Navigate to the project directory:
cd OpenAsAdmin- Build using .NET CLI:
dotnet build -c ReleaseThis project is licensed under the MIT License - see the LICENSE file for details
Contributions are welcome! Please submit issues and pull requests.
If you encounter any problems or have any suggestions, please open an issue on the Issues page.