Windows run as administrator default

Использование запуска приложения с учетной записи администратора в Windows Server 2003

В этой статье описывается использование команды для запуска Run as приложения в качестве администратора.

Исходная версия продукта: Windows Server 2003
Исходный номер КБ: 325362

Аннотация

Можно использовать для запуска приложения в качестве администратора, если вы хотите выполнять административные задачи при входе в систему в качестве члена другой группы, например «Пользователи» или Run as «Power Users».

Действия, необходимые для запуска приложения с учетной записи администратора

Чтобы запустить Run as приложение в качестве администратора, выполните следующие действия.

  1. Найдите приложение, которое нужно запустить в проводнике Windows, консоли управления (MMC) или панели управления.
  2. Нажимайте и удерживайте клавишу SHIFT, щелкнув правой кнопкой мыши исполняемый файл или значок приложения, а затем выберите «Запустить как».
  3. Выберите следующего пользователя.
  4. В полях «Имя пользователя»и «Пароль» введите учетную запись администратора и пароль, а затем выберите «ОК».
  • Некоторые приложения могут не поддерживать использование Run as команды.
  • Возможно, вы не сможете запустить приложение, консоль MMC или средство панели управления из сетевого расположения с помощью команды, если учетные данные, используемые для подключения к сетевой сети, отличаются от учетных данных, используемых для запуска Run as приложения. Учетные данные, используемые для запуска приложения, могут не разрешить доступ к одной сетевой сети.
  • Вы также можете использовать Run as команду из командной строки. Для получения дополнительных сведений выберите «Начните» и выберите «Выполнить». В поле «Открыть» введите cmd и выберите «ОК». В командной подсказке введите runas /?, а затем нажмите ввод.

How To Run Programs As Administrator In Windows 10

Windows runs programs in user mode by default. If you want to run programs in administrative mode, you will need to specify that explicitly in Windows 10. Running programs in Windows 10 as an administrator is easy. In this article, we discuss a few ways to run programs in administrative mode in Windows 10. You may use the method which is convenient for you.

Each method mentioned below will have its own advantages and disadvantages depending upon the situation you are in. For example, for a quick workaround, you may want to use a keyboard shortcut while at other times you may need a more permanent method of opening an app in admin mode. We will also discuss a method especially useful for power users and system administrators in which we can specify admin credentials one time and use applications without asking for password again and again. Let’s start.

4 Ways to run programs in administrative mode in Windows 10

The simplest way to run a program in administrative mode is to right-click the program and select “Run as administrator”. If the current user is not an administrator, Windows will as for the administrator username and password. Let’s check out what other options do we have to run programs in administrative mode.

Always run a specific program as administrator

To always run a specific program as administrator, we will create its shortcut on the Desktop and make changes to the shortcut. Please follow the instructions below:

  1. From Start Menu, find your desired program. Right-click and select Open File Location.
Читайте также:  Accessing windows files from linux

Open file location from start menu

  • Right-click the program and go to Properties –> Shortcut.
  • Go to Advanced.
  • Check Run as Administrator checkbox.

    Run as administrator option for program

    Now when you run the program from Start Menu, it will run in administrative mode.

    Keyboard shortcut to run a program in administrative mode

    You can also run a program in administrator mode directly from Start Menu. Just find the program in Start Menu, press Ctrl + Shift keyboard keys and click on the program. This will open the program as an administrator. But you will always need to press Ctrl + Shift keys while opening the programs in admin mode.

    Always run all programs as administrator

    By not running programs as an administrator, Windows keeps the system secure by not allowing viruses and malware take admin access without user acknowledgement. But if you want to turn off this feature and always run all programs as administrator, please follow the steps below. This security feature is called User Access Control. Disabling UAC will also disable asking for administrative privileges.

    1. Go to Start Menu search and search for “uac”. Select “Change User Account Control Settings”.

    Finding UAC from Start Menu search
    Move the slider to the bottom to turn off User Account Control.

    Turning off UAC

  • After applying this, you will not be asked anything and all programs will run in administrative mode.
  • Use the Run dialog box to run applications with administrative privileges

    There are some system programs which we start directly from Run dialog. For example, I always open command prompt or PowerShell using Run –> cmd.

    If you are using Windows 10 Version 1803, the good news is that you will be able to open the programs in administrative mode directly from the Run dialog.

    Just enter the command and press Ctrl + Shift + Enter. This will trigger Run dialog box to run applications with admin privileges.

    Run programs as administrator using RunAs Tool

    Windows built-in RunAs command allows a user to launch programs with different user credentials than the now logged in user. To use RunAs command, press Shift key and right-click on the program shortcut to show Run As Different User in the context menu. Run as different user context menu

    But you have to repeat this step every time you launch that specific program. If you want to always run a program as a specific user then RunAsTool is for you.

    RunAsTool is a portable app in which you can save admin user credentials and then app can automatically run programs listed in the app as the specific user all the time.

    This is especially useful for system administrators who want to give administrative rights to standard users only for specific programs and applications.

    1. Download RunAsTool
    2. Unzip it in a folder
    3. Run RunAsTool.exe or RunAsToolx64.exe depending upon your system architecture.
    4. First time, it will ask you for administrator user credentials

    Select Admin in RunAsTool
    After giving the administrator password, you can drag and drop the applications you want to run as administrator.

    Adding programs to RunAsTool

  • Now you can double-click any application from within RunAsTool to run directly in administrative mode without asking for administrator password.
  • RunAsTool is a portable app so you can easily keep it in a pen drive and run it on any computer within a Windows Active Directory Domain. It’s a life saver if you want to give network users administrator access to specific programs instead of giving them local admin privileges.

    Conclusion

    All the methods given above can be used for different purposes. As a power user or a system administrator, you must be aware of all these methods and can use them according to your situation. For a quick application, I use the keyboard shortcut + mouse click method. For domain users, I keep a copy of RunAsTool on a network drive and distribute it to users who want administrative access to specific programs.

    Run applications as administrator by default in Windows 10

    I have just got a new laptop with Microsoft Windows 10. My previous laptop ran Windows 7.

    I’m trying to get applications to «run as administrator» by default, so that I’m not constantly having trouble saving/overwriting files, etc. The priority here is to be able to modify my own files on an external hard drive; I wouldn’t have expected that I’d have to do anything special to be able to do this. My user account on the laptop is an «Administrator» account, and I have set the User Account Control setting to «Never notify». I thought that this would achieve the effect I want (as also suggested in this related question in relation to Windows 7).

    Here’s a screenshot of my setting to disable UAC in Windows 10:

    Still, Notepad++ (for one) is not automatically starting with administrative rights. What else do I need to do, or what am I overlooking?

    PS. I’m aware that what I’m trying to do is a security risk, but that’s not the point of this question; whether I should or should not do something is different to whether I can or cannot do something.

    5 Answers 5

    Updated answer: solving the problem instead of answering the question.

    To change the ACLs on the external drive, open its properties and go to the Security tab:

    Notice that Authenticated Users doesn’t have «Full control»; only Administrators does, and you’re not really a member of Administrators unless elevated. Click Advanced.

    (The owner will probably be Administrators.) Click Add.

    Click «Select a principal», and type your username in the box. Check «Full control», then click OK.

    Now that we’re back in the advanced ACL editor, check the box that replaces child item ACLs. Click OK and accept the warning. Click OK on the properties window, wait for the operation to complete (if there is one), and you’re done.

    The original (dangerous) answer follows below the line.

    Danger! This is almost certainly a bad plan, for reasons explained in Ramhound’s comment.

    Run gpedit.msc to open the Local Group Policy Editor. Expand Computer Configuration, Windows Settings, Security Settings, Local Policies, and Security Options. Four settings need to be updated:

    1. Set «User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode» to Elevate without prompting.
    2. Set «User Account Control: Detect application installations and prompt for elevation» to Disabled.
    3. Set «User Account Control: Run all administrators in Admin Approval Mode» to Disabled.
    4. Set «User Account Control: Only elevate UIAccess applications that are installed in secure locations» to Disabled.

    The LGPE automatically saves all changes, so exit it and reboot.

    Again, this is a very insecure configuration that you’re creating here.

    Run Command Prompt as Administrator by Default on Windows 10

    After the recent upgrade to Windows 10, the good ol’ AppCompatFlags method no longer works. Which is something like this —

    Is there any other way I can make command prompt run as admin by default? I’m not talking about the CTRL + SHIFT + ENTER to run as admin or through a shortcut as they are all very inconvenient.

    (E.g. say when you SHIFT right click in a folder and open a new command prompt, it’s not gonna run as admin by default and there’s no way you can make it run with the privilage without editing the context menu.)

    5 Answers 5

    Open the Start menu and click All apps find the program you want to always run in administrator mode and right-click on the shortcut. Click the Open file location (only desktop programs will have this option)

    A File Explorer window will open to the location of the program you want to access.

    Right-click on the program and click Properties from the pop-up menu.

    In the Properties window, click the Shortcut tab and then click Advanced

    In the Advanced Properties window, check the box next to Run as administrator and click OK.

    The program will now open in administrator mode.

    Actually, there is a way to do it:

    1. You need to go to C:\WINDOWS\system32\ and take ownership over cmd.exe. You can do it by Right click->Properties->Security->Advanced->Change (in blue with the shield icon).
    2. Now you can give yourself access to modify it, or whatever you need to rename it.
    3. Once you’ve done that, rename it to whatever you like.
    4. You can access it’s compatibility properties tab and tick «Run as administrator»

    But, not quite, no program will now be able to find cmd.exe since it no longer exists. But fret not, open your shiny new renamed cmd and run this command:

    mklink «C:\WINDOWS\system32\cmd.exe» «C:\WINDOWS\system32\cmdWithNewName.exe»

    Congrats, you now have a dummy cmd.exe that will point to your renamed exe that is always ran as administrator.

    Remember to change the permissions on the new «cmdWithNewName.exe» back to being only read & execute. After you’ve done that, you can change the owner of the file back to TrustedInstaller by entering «NT SERVICE\TrustedInstaller» in the object name field where you originally took ownership of the file.

    This locks the file from any further tampering, lessening the security risk.

    How can I run ALL my Apps “as administrator” by default in Windows 7?

    I know that I can change the property in advanced setting of the shortcut to run one app as administrator. But is possible to do that for all my application? There is a general setting or something somewhere that can tweak that?

    3 Answers 3

    You can disable User Account Control (UAC) entirely from the control panel; this will mean all programs (installed, downloaded, background, everything) will effectively run with the privileges you currently have to grant manually (via UAC pop-up or compatibility settings).

    I think this is what you are asking for?

    However, I highly recommend against doing this; it lowers the security of your entire system by allowing any program to modify your system.

    In Windows 7 you can adjust the level of UAC to suit your needs. In descending order of strength, the settings for Win7 are:

    Always notify
    UAC pop-up for changing certain Windows settings and for programs that require elevated rights.

    Notify me only when programs try to make changes to my computer
    Doesn’t request permissions when changing Windows settings, they are granted automatically. Programs still require using a UAC pop-up.

    Notify me only when programs try to make changes to my computer (do not dim my desktop)
    As above, but screen is not dimmed. Potentially leaving the UAC pop-up windows open to manipulation by other software.

    Never notify (I suspect this is what you are after, but please reconsider!)
    If logged on as an admin-level user everything is automatically given elevated permissions.
    If you are logged on as a standard-level user, anything that requires elevated permissions will automatically be denied (with no opportunity to enter a password in a UAC pop-up).

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