Windows installing program as administrator

Содержание
  1. How to install and run Windows programs as administrator
  2. Running programs as Administrator
  3. Running commands as Administrator
  4. Configuring a shortcut to always run a program as Administrator
  5. Disabling UAC
  6. Using Administrator Status To Install A Program In Win10
  7. Running upgrade install (setup.exe) as Administrator
  8. Replies (8) 
  9. Как запускать программы, требующие права администратора, под учетной записью обычного пользователя
  10. Зачем обычному приложению могут понадобится права администратора
  11. Запуск программы, требующей права администратора от обычного пользователя
  12. Переменная окружения __COMPAT_LAYER и параметр RunAsInvoker
  13. How to run apps as administrator on Windows 10
  14. How to run app as administrator using Stat menu
  15. Start context menu
  16. Start menu keyboard shortcut
  17. How to run app as administrator using Search
  18. Search result menu
  19. Search keyboard shortcut
  20. How to run app as administrator using desktop
  21. Desktop context menu
  22. Taskbar context menu
  23. How to run app as administrator using Run
  24. How to run app as administrator using Task Manager
  25. How to run app as administrator using File Explorer
  26. Context menu
  27. Ribbon menu
  28. How to run app as administrator using Command Prompt
  29. More Windows 10 resources
  30. Microsoft’s Surface Duo is not ‘failing up’
  31. Here’s what you can do if Windows 10 update KB5001330 is causing issues
  32. Review: NZXT made its first AMD motherboard and it’s brilliant
  33. These are the best PC sticks when you’re on the move

How to install and run Windows programs as administrator

In Microsoft Windows, when you try to run a program or perform an operation that requires Administrator privileges, a UAC prompt requires your permission to proceed.

Similarly, you may encounter a permissions error when trying to run commands in a Command Prompt window that require Administrator privileges. These errors happen because UAC blocks the Command Prompt from running Administrator commands unless you run the Command Prompt as Administrator.

UAC acts as a safeguard, requiring your explicit permission to run any software that can modify the Windows system.

Select a link below and follow the steps to run a program as administrator or disable UAC.

Running programs as Administrator

If a program requires Administrator privileges to perform certain functions, you need to run the program as Administrator.

To run a program as Administrator in Windows 10, right-click the icon in your Start menu and select Run as administrator.

For example, in the image below, we are running the Windows 10 command prompt as administrator. We’ll discuss this more in the next section.

If you right-click a shortcut in your Start menu and the Run as administrator option is not listed, that function is not available for the program.

When you receive the UAC prompt confirming that you want to grant privileges, click Yes.

Running commands as Administrator

In the example above, we ran the Windows 10 command prompt as Administrator. We did this by clicking Start menu > All apps > Windows System, then right-clicking Command Prompt > Run as administrator.

Running the command prompt as Administrator allows you to run commands that change or edit your system files. For example, in the Administrator command prompt, you can successfully run the sfc command (System File Checker).

You should now be able to execute the command you were trying to run previously when you received the error message. With administrative rights activated, the command should execute successfully.

Configuring a shortcut to always run a program as Administrator

To configure most program shortcuts to always run the program as Administrator, follow the steps below.

  1. Locate the program shortcut, right-click the shortcut and select Properties.

If the program icon is in the Start menu, you need to right-click the icon and select Open file location. Then begin with the step above.

  1. On the Properties window, click the Compatibility tab.
  2. Check the box for Run this program as an administrator and click OK to save the shortcut settings change.

If you do not see a Compatibility tab in the Properties window, follow the steps below instead to always run the program as Administrator.

  1. Repeat step 1 above to access the Properties window for the program shortcut.
  2. On the Properties window, click the Shortcut tab.
  3. Click the Advanced button.
  4. On the Advanced Properties window, check the box for Run as administrator and click OK.
  5. Click OK on the main Properties window to save the shortcut settings change.

Disabling UAC

To disable the User Account Control prompt in Windows, follow the steps below for your version of Windows.

Using Administrator Status To Install A Program In Win10

I built a new pc and installed Win 10. Everything is working ok except for being able to install one app. When I try I get the message «This App Has Been Blocked For Your Protection. An Administrator Has Blocked You From Running This App Etc». I am the administrator but it still won’t let me install it. I sign in as the administrator and get the administrator screen and I can install it. The problem is that that app is only on the administrator screen. When I sign on the regular users screen there is no icon for the app on that screen. I don’t want to be able to use it only on the administrators sign in. How can I do this? Your help is appreciated.

Читайте также:  Windows командная строка определить ip

PS- I have used the app before so I know its safe.

PPS- Also, the message says an administrator has blocked etc. I am the only administrator on this machine so how did it get blocked.

To troubleshoot the issue, let’s enable the hidden built-in Administrator account on your Windows 10 PC. Here are the steps:

  1. Right-click Start.
  2. Select Command Prompt (Admin).
  3. Type net user administrator /active:yes and press Enter. You should see the message The command completed successfully.
  4. Launch Start, click the user account tile on the top left of the screen and choose Administrator.
  5. Click Sign in.
  6. Locate the software or .exe file that you want to install.
  7. After you have installed the application, log out of the Admin account and log back in to your regular account.
  8. Disable the Administrator account to prevent malicious access to your system files. Open Command Prompt, type net user administrator /active:no and press Enter.

Let us know how it goes.

14 people found this reply helpful

Was this reply helpful?

Sorry this didn’t help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

Running upgrade install (setup.exe) as Administrator

I have a lot of experience as an IT professional upgrading Windows OSs. That experience tells me that it is always best to run the install as Administrator. It seems like Microsoft downloads and install the Windows 10 upgrade automatically without any user intervention and does not allow the user to specify running the install as Administrator.

My questions are: Is my perception stated above true? If so, does Microsoft run the install as Administrator for you?

I’ve had Windows upgrades go south in the resulting installed OS when I have not installed the system in Administrator mode.

Replies (8) 

Due to high demand for Windows 10 globally we are experiencing a temporary delay in the process of upgrade to Windows 10. However, if you are facing issue in updating Windows 10, I would suggest you to follow the suggestion provided in the article mentioned below and see if it helps you to upgrade Windows 10.

If you registered for your copy, you will get it but it may not be today. Due to the high customer anticipation for Windows 10, we are making sure each customer has a good experience with downloading and installing. To do that, we are spreading out the install availability over time. We try our best to keep customers updated on the latest information on Windows 10 on our website. We recommend for you to give it time and monitor our website for updates at http://windows.microsoft.com

I would suggest you to refer the article mentioned below to upgrade your system to Windows 10 and see if it helps you to upgrade.

In addition to that I would suggest you to know the system requirements and for that you may refer to the article mentioned below.

You may also refer to the article mentioned below to for downloading Windows 10 on your computer.

Hope the information provided is helpful. Do let us know if you have any queries related to Windows, we will be happy to assist you.

Как запускать программы, требующие права администратора, под учетной записью обычного пользователя

Многие программы при запуске требуют повышения прав (значок щита у иконки), однако на самом деле для их нормальной работы прав администратора не требуется (например, вы вручную предоставили необходимые права пользователям на каталог программы в ProgramFiles и ветки реестра, которые используются программой). Соответственно, при запуске такой программы из-под простого пользователя, если на компьютере включен контроль учетных записей, появится запрос UAC и от пользователя потребует ввести пароль администратора. Чтобы обойти этот механизм многие просто отключают UAC или предоставляют пользователю права администратора на компьютере, добавляя его в группу локальных администраторов. Естественно, оба этих способа небезопасны.

Зачем обычному приложению могут понадобится права администратора

Права администратора могут потребоваться программе для модификации неких файлов (логи, конфигурации и т.д.) в собственной папке в C:\Program Files (x86)\SomeApp). По умолчанию у пользователей нет прав на редактирование данного каталога, соответственно, для нормальной работы такой программы нужны права администратора. Чтобы решить эту проблему, нужно под администратором на уровне NTFS вручную назначить на папку с программой право на изменение/запись для пользователя (или группы Users).

Примечание . На самом деле практика хранения изменяющихся данных приложения в собственном каталоге в C:\Program Files неверна. Правильнее хранить данные приложения в профиле пользователя. Но это вопрос уже о лени и некомпетентности разработчиков.

Читайте также:  Блютуз модем windows 10

Запуск программы, требующей права администратора от обычного пользователя

Ранее мы уже описывали, как можно отключить запрос UAC для конкретной программы , с помощью параметра RunAsInvoker. Однако этот метод недостаточно гибкий. Также можно воспользоваться RunAs с сохранением пароля админа /SAVECRED (также небезопасно). Рассмотрим более простой способ принудительного запуска любой программы без прав администратора (и без ввода пароля админа) при включенном UAC (4,3 или 2 уровень ползунка UAC ).

Для примера возьмем утилиту редактирования реестра — regedit.exe (она находится в каталоге C:\windows\system32). При запуске regedit.exe появляется окно UAC и, если не подтвердить повышение привилегии, редактор реестра не запускается.

Создадим на рабочем столе файл run-as-non-admin.bat со следующим текстом:

cmd /min /C «set __COMPAT_LAYER=RUNASINVOKER && start «» %1″

Теперь для принудительного запуска приложения без права администратора и подавления запроса UAC, просто перетащите нужный exe файл на этот bat файл на рабочем столе.

После этого редактор реестра должен запустится без появления запроса UAC. Открыв диспетчер процессов, и добавим столбец Elevated (С более высоким уровнем разрешений), вы увидите, что в системе имеется процесс regedit.exe с неповышенным статусом (запущен с правами пользователя).

Попробуйте отредактировать любой параметр в ветке HKLM. Как вы видите доступ на редактирование реестра в этой ветке запрещен (у данного пользователя нет прав на запись в системные ветки реестра). Но вы можете добавлять и редактировать ключи в собственной ветке реестра пользователя — HKCU.

Аналогичным образом можно запускать через bat файл и конкретное приложение, достаточно указать путь к исполняемому файлу.

Set ApplicationPath=»C:\Program Files\MyApp\testapp.exe»
cmd /min /C «set __COMPAT_LAYER=RUNASINVOKER && start «» %ApplicationPath%»

Также можно добавить контекстное меню, которое добавляет у всех приложений возможность запуска без повышения прав. Для этого создайте следующий reg файл и импортируйте его в реестр.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\forcerunasinvoker]
@=»Run as user without UAC elevation»
[HKEY_CLASSES_ROOT\*\shell\forcerunasinvoker\command]
@=»cmd /min /C \»set __COMPAT_LAYER=RUNASINVOKER && start \»\» \»%1\»\»»

После этого для запуска любого приложения без прав админа достаточно выбрать пункт « Run as user without UAC elevation » в контекстном меню.

Переменная окружения __COMPAT_LAYER и параметр RunAsInvoker

Переменная окружения __COMPAT_LAYER позволяет устанавливать различные уровни совместимости для приложений (вкладка Совместимость в свойствах exe файла). С помощью этой переменной можно указать настройки совместимости, с которыми нужно запускать программу. Например, для запуска приложения в режиме совместимости с Windows 7 и разрешением 640×480, установите:

set __COMPAT_LAYER=Win7RTM 640×480

Из интересных нам опций переменной __COMPAT_LAYER выделим следующие параметры:

  • RunAsInvoker — запуск приложения с привилегиями родительского процесса без запроса UAC.
  • RunAsHighest — запуск приложения с максимальными правами, доступными пользователю (запрос UAC появляется если у пользователя есть права администратора).
  • RunAsAdmin — запуск приложение с правами администратора (запрос AUC появляется всегда).

Т.е. параметр RunAsInvoker не предоставляет права администратора, а только блокирует появления окна UAC.

How to run apps as administrator on Windows 10

Source: Windows Central

On Windows 10, the ability to run an app as administrator is an essential skill that every user should know because, by design, apps operate in user mode to prevent potential unwanted system changes that may negatively affect the experience. However, sometimes, some trusted programs may require elevated permissions to work as intended, and knowing the steps to run them with appropriate permissions will come in handy.

Whatever your reason it might be, Windows 10 includes several methods to quickly start an app with elevated privileges using the Start menu, File Explorer, Command Prompt, and more.

But remember that this is only true for traditional desktop (Win32) programs since apps available through the Microsoft Store can’t run elevated.

In this Windows 10 guide, we’ll walk you through the different ways to launch an app with administrator privileges to complete an elevated task.

How to run app as administrator using Stat menu

Using the Start menu, you have at least two quick ways to start an application as an administrator.

Start context menu

To run a program as administrator from the Start menu context menu, use these steps:

  1. Open Start.
  2. Right-click the app (anywhere on the menu).

Select the More submenu, and click the Run as administrator option.

Source: Windows Central

Start menu keyboard shortcut

To start an app with admin right using the keyboard shortcut, use these steps:

  1. Open Start.
  2. Use the Ctrl + Shift keyboard, and click the app from the list.
  3. (Optional) Select app using the arrows keys.
  4. Use the Ctrl + Shift + Enter keyboard shortcut.

If you use the search experience, you also have two ways to run apps with administrative permissions.

Search result menu

To open an app as an administrator from the search box, use these steps:

Open Start.

Quick tip: You can also open search directly from the taskbar (if available), or use the Windows key + S keyboard shortcut.

Click the Run as administrator option from the right side. (Sometimes, the option is hidden until you click the down-arrow button.)

Source: Windows Central

(Optional) Right-click the app and select the Run as administrator option.

Source: Windows Central

Search keyboard shortcut

To run a program from search with a keyboard shortcut, use these steps:

  1. Open Start.
  2. Search for the app.
  3. Use the Ctrl + Shift + Enter keyboard shortcut.

How to run app as administrator using desktop

On Windows 10, you can also start apps elevated from the desktop or taskbar.

Desktop context menu

To start an app with elevated privileges from the desktop, use these steps:

    Use the Windows key + D keyboard shortcut to view the desktop.

Right-click app, and select the Run as administrator option.

Source: Windows Central

Taskbar context menu

To run apps elevated from the taskbar, use these steps:

  1. Right-click the app in the taskbar.
  2. Right-click the app name.

Select the Run as administrator option.

Source: Windows Central

How to run app as administrator using Run

To start a program as an admin user from the Run command, use these steps:

    Open Start.

Search for Run and click the top result to open the app.

Quick tip: You can also open the Run command using the Windows key + R keyboard shortcut.

Type the name of the app. For example, explorer.exe.

Source: Windows Central

  • Use the Ctrl + Shift keyboard shortcut and click the OK button.
  • How to run app as administrator using Task Manager

    To launch an app as an administrator from Task Manager, use these steps:

      Open Start.

    Search for Task Manager and click the top result to open the app.

    Quick tip: Other alternative ways to open the experience include, right-clicking the taskbar and selecting the Task Manager option. Using the Ctrl + Shift + Esc keyboard shortcut, and using the Ctrl + Alt + Delete shortcut and clicking the Task Manager option.

    Select the Run new task option.

    Source: Windows Central

    Check the Create this task with administrator privileges.

    Source: Windows Central

    How to run app as administrator using File Explorer

    File Explorer includes at least two ways to launch apps as an administrator user.

    Context menu

    To open app elevated with File Explorer, use these steps:

    1. Open File Explorer.
    2. Navigate to the folder with the executable file.

    Right-click the app and select the Run as administrator option.

    Source: Windows Central

    Ribbon menu

    To run a program as an administrator with the ribbon menu, use these steps:

    1. Open File Explorer.
    2. Navigate to the folder with the executable file.
    3. Select the app.
    4. Click the Application Tools tab.

    Click the Run as administrator button.

    Source: Windows Central

    Quick note: If you click the arrow button, then you can select to launch the app as admin or as a different user.

    How to run app as administrator using Command Prompt

    To run an app elevated from Command Prompt, use these steps:

    1. Open Start.
    2. Search for Command Prompt and click the top result to open the console.

    Type the following command to run an app with administrator privileges and press Enter:

    `runas /user:»COMPUTER-NAME\ADMIN-USER» «C:\PATH\TO\PROGRAM.EXE»

    In the command, make sure to update the syntax with your computer name and administrator user and with the correct path of the program.

    For example, this command start PowerShell 7 with administrator privileges:

    runas /user:»office-pc\user@email.com» «C:\Program Files\PowerShell\7\pwsh.exe»

    Source: Windows Central

  • Confirm the password and press Enter.
  • If you want to run an app always as an administrator, you can use these steps.

    More Windows 10 resources

    For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

    Microsoft’s Surface Duo is not ‘failing up’

    Microsoft announced this week that it was expanding Surface Duo availability to nine new commercial markets. While Surface Duo is undoubtedly a work in progress, this is not a sign of a disaster. It’s also doesn’t mean that Surface Duo is selling a ton either. Instead, the reason for the expansion is a lot more straightforward.

    Here’s what you can do if Windows 10 update KB5001330 is causing issues

    In this guide, we’ll show you the steps to get rid of the update KB5001330 to fix profile, gaming, and BSoD problems with the Windows 10 October 2020 Update and May 2020 Update.

    Review: NZXT made its first AMD motherboard and it’s brilliant

    NZXT made its first motherboard with an AMD chipset. The N7 B550 supports the latest AMD Ryzen processors and there’s plenty to love about this platform. To differentiate the N7 B550, NZXT made notable changes to the layout of the motherboard to make it easy to create a clean PC build.

    These are the best PC sticks when you’re on the move

    Instant computer — just add a screen. That’s the general idea behind the ultra-portable PC, but it can be hard to know which one you want. Relax, we have you covered!

    Читайте также:  Asus router настройка windows
    Оцените статью