


#Cmd open notepad as administrator windows
Method 2 – A desktop shortcutĪ shortcut with extra settings is yet another method to always open Command Prompt or PowerShell as Administrator in Windows 11. It will also show a User Account Control prompt which you need to confirm by clicking Yes. Alternatively, open the JSON file by clicking the appropriate button in Terminal Settings, and add "elevate": true, similar to the Command Prompt profile reviewed earlier.įrom now, every time you launch Windows Terminal, it will open to the elevated PowerShell.Select “PowerShell” as your default Windows Terminal profile.Now, return to the settings and select “Startup” in the left panel.Enable the “Run this profile as Administrator” option on the right.Open settings in Windows Terminal, and select PowerShell on the left.To always run PowerShell as Administrator in Windows 11, do the steps below. After you modify the profile for PowerShell, set it as your default profile. The idea here is exactly the same as we used for the command prompt. Find the “Default profile” option and change it to your edited “Command Prompt”.įrom now, Windows Terminal will always open to the elevated command prompt.Select the “Startup” tab in the left panel.Set modified profile as default Terminal Profile That will ensure Terminal launches as Command Prompt. Now you may want to use your modified Command Prompt profile as the default Windows Terminal profile. Save the changes and close Notepad(or any other text editor that opens).

Don’t forget to end the line with a comma. Add "elevate": true, to the profile body between the curly brackets.Find “Command Prompt” in the list of profiles.Click the “Open JSON file” button at the bottom left.Run Windows Terminal and open its settings.If you prefer changing Terminal options in the JSON file, you need to add one “elevated” value to the Command Prompt profile. On the right panel, look for the “Run this profile as Administrator” option and enable it.Click the arrow-down menu button next to tabs and select “Settings”( Ctrl +, ).Right-click the Start menu icon in the taskbar and select “Windows Terminal”.Set modified profile as default Terminal ProfileĪlways run Command Prompt as Administrator in Windows 11.Always run Command Prompt as Administrator in Windows 11.
