Forum Discussion
Open powershell in current folder as administrator W11
You could use Windows PowerToys and Create a Shortcut on the Keyboard.
Certainly! To create a keyboard shortcut to launch PowerShell using PowerToys, follow these steps:
1. **Install PowerToys** (if you haven't already):
- Download and install PowerToys from the official GitHub repository: [PowerToys GitHub](https://github.com/microsoft/PowerToys/releases).
2. **Open PowerToys Settings**:
- Launch PowerToys by searching for it in the Start menu or system tray.
- Click on the PowerToys icon in the system tray to open the settings.
3. **Navigate to Keyboard Manager**:
- In the PowerToys settings, click on "Keyboard Manager" in the left sidebar.
4. **Add a New Shortcut**:
- Click on the "Remap keys" tab.
- Under "Key Remapping," click the "Add" button to create a new key remapping.
- In the "Key" column, select the key combination you want to use as a shortcut (e.g., Ctrl + Alt + P).
- In the "Mapped To" column, choose "Launch a program" and browse to the location of your PowerShell executable (usually `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe`).
5. **Apply and Save**:
- Click "OK" to save the key remapping.
- Close the PowerToys settings window.
6. **Test Your Shortcut**:
- Press the configured key combination (e.g., Ctrl + Alt + P) to launch PowerShell.
Now you have a custom keyboard shortcut to open PowerShell using PowerToys! 🚀.
Remember to adjust the key combination and executable path according to your preferences and system configuration.
At least this way it is available regardless of what app or program you are using.