Windows run notepad as administrator

Как запустить блокнот от имени администратора

Если вы захотите изменить системный файл, например, отредактировать файл hosts, вам понадобится запустить текстовый редактор с наивысшими правами. Ниже мы покажем, как это проще всего сделать в разных операционных системах.

В Windows 7

1 Нажмите кнопку Пуск.

2 В поле поиска введите слово notepad или блокнот.

3 Кликните правой кнопкой мыши по блокноту в результатах поиска.

4 Выберите Запуск от имени администратора:

В Windows 8.1

1 Нажмите Win+W для вызова поиска.

2 В фильтре выберите Везде.

3 Введите слово блокнот.

4 Кликните правой кнопкой на Блокнот в результатах поиска

5 Выберите Запуск от имени администратора:

6 Нажмите Да в окне контроля UAC:

Как открыть блокнот с правами администратора в Windows 10

1 Нажмите Win+W для вызова поиска.

2 В поле поиска наберите Notepad

3 Теперь кликните правой кнопкой по Notepad в поиске.

4 Выберите Run as administrator

1 Запустите командную строку от имени администратора:

2 Введите команду notepad.

Open Notepad as Admin to Avoid “Access is Denied”

This will make your life a whole lot easier

If you’ve ever tried to edit a system file using Notepad on your Windows PC, you’ve likely seen the error that says “Notepad access denied”. It usually happens when you try to modify a system file from a standard user account on a PC. Windows does this to ensure your system files are protected and that only the administrator can make changes to them.

If you still need to access and edit the file using Notepad, you’ll need to open Notepad as admin. It should then give you the privileges you need to modify any of the system files on your machine. There are multiple ways to run Notepad as admin and here we show you some of those.

Open Notepad As Admin Using The Right-Click Menu

The easiest way to run Notepad as an admin is to use an option from your context menu. You’ve likely used this option before if you’ve ever tried running an app as an admin.

  • Locate the Notepad app on your machine. It may be on your desktop if you use it frequently.
  • Right-click on the app and select the option that says Run as administrator.
Читайте также:  Windows form app net framework

  • You’ll be prompted to enter your admin password. Enter the password and hit Yes.

Notepad will launch with admin privileges letting you modify any files on your system.

Run Notepad As Admin By Creating a Shortcut

The above method might not be convenient for you if you need to run the Notepad with admin privileges too frequently.

Fortunately, there’s a method that eliminates right-clicking on the file and automatically launches the Notepad app with admin rights. It’ll require you to input the admin password each time, though.

  • Right-click anywhere blank on your desktop and choose New followed by Shortcut. It’ll let you add a new shortcut to your desktop.

  • It’ll ask you to enter the location of the item that you want to create a shortcut for. Type the following into the box and hit Next. This is the path to the Notepad app.

%windir%\system32\notepad.exe

  • You’ll now enter a name for your shortcut. This should be something that clearly tells you what the shortcut is for. We’d suggest using something like Notepad with Admin. Click on Finish when you’ve named your shortcut.

  • The newly created shortcut should be available on your desktop. Right-click on it and select the option that says Properties to give it admin rights.

  • Head to the Shortcut tab and find and click on the Advanced button.

  • On the following screen, put a checkmark in the Run as administrator box and click on OK.

From now on, whenever you double-click on the newly created shortcut, it’ll open the Notepad app with admin rights.

Launch Notepad With Admin Rights From Cortana Search

Cortana search also allows you to open an instance of Notepad with admin rights. You basically need to search for the app and then choose an option that launches it.

  • Put your cursor in the Cortana search box and type in Notepad.
  • When Notepad appears in the search results, right-click on it and select Run as administrator.

  • Enter your administrator password and the app will open.

Use A Third-Party App To Access Notepad With Admin Rights

Since most users prefer using Notepad to edit system files, there’s now even an app that lets you run this text editor as admin each time you open it.

The app’s called RunAsTool and it lets you run any app on your computer as an administrator. It’s available for free to download and use.

  • Download and launch RunAsTool on your PC. It’s portable so you don’t need to install it.
  • You’ll be asked to select your admin account. Select it and then enter the password for the account. Then hit Apply to continue.
Читайте также:  С with linux зва

  • Click on the File menu at the top and select Add File.

  • Navigate to your Windows folder, head into System32, and double-click on Notepad.exe.

  • Select Notepad in the app and ensure Run as administrator is enabled in the right-hand side pane.

  • Right-click on Notepad in the app and select Create Shortcut.

  • Choose a location where you want to place the shortcut.

Double-clicking on this newly created shortcut will launch Notepad as admin on your PC. It won’t ask for an admin password but it will ask for UAC permissions.

Directly Open Files With Admin Rights In Notepad

If you’ve noticed, all of the methods above require you to first open Notepad to then edit your files. What if there was a way you could directly open the files you want to edit in Notepad with the admin rights? Well, there is.

Using Windows registry editor, you can add an option to your right-click menu that lets you open any of your files in Notepad with administrator privileges.

  • Sign-in to an admin account on your PC. Press the Windows + R keys at the same time, type in regedit, and hit Enter. It’ll open registry editor.

  • Access the following path in the editor.

HKEY_CLASSES_ROOT\*\shell

  • Right-click on the shell directory and select New followed by Key to create a new key.
    • Enter runas as the name of the key.

    • Click on the newly created runas key and then double-click on Default in the right-hand side pane.

    • Type Open in Notepad with Admin and press Enter.

    • Create a new key under runas by right-clicking on runas and selecting New followed by Key. Name this key command.

    • Double-click on Default for the command key and enter in the following. Replace PCNAME with your computer’s name. Your PC name can be found in Control Panel > System.

    runas /savecred /user:PCNAME\Administrator “notepad %1”

    • Now right-click on any file you want to edit and select Open in Notepad with Admin.

    • You’ll be asked to enter your admin password.

    It’s only a one-time password prompt and you won’t be asked to enter the password the next time you use the option.

    Читайте также:  Bittorrent для mac os big sur

    Mahesh has been obsessed with technology since he got his first gadget a decade or so ago. Over the last few years, he’s written a number of tech articles on various online publications including but not limited to MakeTechEasier and Android AppStorm. Read Mahesh’s Full Bio

    Password Recovery

    When you open a system file with Notepad, make few changes and try saving it, you may get the following error message:

    “You don’t have permission to save in this location. Contact the administrator to obtain permission”

    To fix this permission issue, you have to run Notepad as an administrator. In this tutorial we’ll show you 3 ways to open Notepad as administrator in Windows 10.

    Method 1: Open Notepad as Administrator via Cortana Search

      Type “notepad” in the Cortana search box on the taskbar. Right-click on the program that appears in the search results, and select “Run as administrator“.

  • When the User Account Control dialog appears, click Yes. It will launch Notepad as administrator rights.
  • Method 2: Create a Desktop Shortcut to Always Open Notepad as Administrator

    1. Right-click on the empty space on the desktop, and select New ->Shortcut.
    2. In the Create Shortcut wizard, type in the full path of the Notepad executable file, and click Next.
      %windir%\system32\notepad.exe


    Give a descriptive name for the new shortcut and click Finish.


    Right-click the newly created shortcut on the desktop and select Properties.


    In the Shortcut tab, click Advanced.


    Check the “Run as administrator” box and click OK.

  • Just double-click the Notepad desktop shortcut and it will open it always as administrator.
  • Method 3: Add “Open Notepad as Admin” to Right-click Context Menu

      Open Registry Editor and navigate to the following location:
      HKEY_CLASSES_ROOT\*\shell

    Right-click on the shell key in the left pane, and select New ->Key from the pop-up menu.
    Name the new key runas.


    Select the runas key, and then double-click on “(Default)” in the right pane and change its value to “Open with NotePad (Admin)“.


    Right-click on the runas key and create a new subkey named command. Next, double-click on “(Default)” in the right pane and set it to “notepad %1“.


    Close Registry Editor. When you right-click any file in Windows Explorer, you’ll see a new option to open Notepad as admin from the context menu.

    Оцените статью