Cannot run as administrator in windows 7. Running programs from the command line


For the operation of some programs and for launching certain commands Administrator rights are required. Windows 7 and Windows 8 offer several methods you can use to do this. I found 5 ways, and if you know others, please share them with us in the comments below.

How to run programs as administrator from the Start screen in Windows 8

Find the shortcut for the program you want to launch and click right click mouse on it. This will bring up a context menu at the bottom of the screen.

Among the context menu options is a button called “Run as administrator.” Click on this button and the selected program will be launched. If you try to run the application from a non-administrator account, you will be prompted for an administrator password. If you do not provide a password, the program will not start.

Applications installed from Windows Store, cannot be run with administrator rights. Only desktop programs can run with such privileges.

How to run programs as administrator from the desktop or in Explorer

If you are on the desktop or in Explorer (in Windows 8 or 7), there is another way to run any program with administrator rights.

First, find the program (this could be an executable or a shortcut) that you want to run. Then right-click and select “Run as administrator.”

How to make a program always run with administrator rights

What should I do if I want the program to always run as administrator? There is an exit.

Find the program you want to run (again, this could be a shortcut or an executable file). Right-click to open the context menu and select Properties.

In the Properties window, go to the Compatibility tab. At the bottom, activate the option “Run this program as an administrator” and click on the OK button.

After applying this setting, the program will always run as administrator.

The above method is suitable for both program shortcuts and executable files. But in the shortcut properties there is another option that allows you to make the program always run as an administrator.

In the shortcut properties window, on the “Shortcut” tab, click on the “Advanced” button.

Activate the “Run as administrator” option and click on the OK button. Then click on the OK button again in the Properties window.

Conclusion

Have a great day!

In all modern versions of Windows, only desktop applications can be run with administrator rights. Universal Windows apps installed from the Windows Store cannot be run with administrator rights. In addition, they are allowed the same level of permissions as a regular user account. This means that they are not allowed to make changes to the computer's advanced system settings or registry settings.

Administrator rights may be required to operate a program or to run certain commands. There are several ways to run a game or program with the highest rights. You can also configure the program to automatically open as an administrator; if you remember the command line, this is a very convenient option.

You can read step-by-step instructions below.

To run a program or game as an administrator, you can use the context menu. To do this follow below instructions:


Hotkey combination Ctrl+Shift+Enter

In order to take advantage elevated privileges can be take advantage hotkey combination Ctrl +Shift +Enter.


On a note ! If you want the command prompt to open with administrator rights automatically, follow below instructions .


Start Menu

This is an excellent solution for running a game or program as an administrator. Take advantage The start menu is very simple, you need to follow the steps below:

Task bar

If your program or game is pinned to the “Taskbar”, then you can take advantage and this option. In case you haven't done this, pinning a program or game to the bottom panel is very simple:

  • right-click on the program shortcut and in the window that appears, select the option “ Pin to taskbar";
  • you can also drag the shortcut to bottom panel and it will be automatically pinned.

Using the "Taskbar" is very convenient.


Video - How to run a program as administrator

How to configure automatic opening of a program as an administrator

You can make a program or game open with elevated rights automatically.

Method 1


Method 2


On a note ! But this will only work for the current user. For information on how to configure programs or games to start automatically for all users, see below.

How to set up automatic run as administrator for all users

If you want to enable automatic start as administrator for all laptop or PC users, do the following:

  1. Click on the game or program icon. Using the right cry, open "Properties" (as in the picture below).

  2. In the window that appears, click on “ Compatibility".

  3. Click "Change settings for all users" (as in the example below).

  4. In the new window, you will see the option to run the program or game as administrator. Check the box and click “Apply”, then “OK”, see the picture below.

  5. Returning to “Properties” you will see that the option to run a program or game as an administrator has faded (see example below). This means that, compared to user settings, settings for all users have higher priority. Click "OK" and save your changes.

Video - How to constantly run applications as administrator

pull September 23, 2011 at 6:54 pm

Running an application with administrator rights and without displaying a message when UAC is enabled (Windows 7)

  • Lumber room *

Inspired by the article. I read the comments and I wanted to describe here the possibility of running a trusted application with administrator rights when UAC is enabled. This technology This is a really good step by Microsoft towards the security of the user's use of the computer, but the user may often use unsigned applications that he trusts, which leads to constant UAC messages and further irritation of the user. I will look at an example of how to run applications with administrator rights and without issuing a message from UAC use of FAR Manager, which I need for work.
So, first you need to go to the task scheduler
“Start - All Programs - Accessories - System Tools - Task Scheduler”
and “Create task”. In the window that appears, set the “Name” (for example, FAR) of the task and check the “Run with highest privileges” option.
Next, go to the “Actions” tab and click the “New” button to configure the program to be launched.
In the “Program or script” field (Program/script), using the “Browse” button, indicate the location of the file we need to launch and click the “Open” button. Next, press the OK button twice.

Thus, we have a task with high privileges to run as administrator. Now you need to create a shortcut to run this task.

Create a shortcut on the desktop and in the “Object location” (Target) field enter schtasks /run /tn FAR (if the task name was several words separated by spaces, you must specify the task name in the shortcut in “ double quotes"). Click “Next”, set the name of the shortcut (it is best that it matches the name of the program) and click OK. Next, you can go to the properties of this shortcut and assign it an icon from the program. Minus this method is that in this way you can run only one copy of the program. To make two copies, you will need to register another task in the scheduler with a different name, but using the same system, and also make a shortcut to it.

Tags: Windows 7, UAC, Task scheduler, launching applications

Some applications require elevated rights to run on Windows and must be run as an administrator. In this case, the request " User Account Control" (User Account Control or UAC), in which the system asks for your consent to launch the application.

Many users incorrectly believe that User Account Control is just a nuisance and disable it. In this case, the security of the computer is seriously affected, because user consent is no longer required to launch applications, and any malware can start and operate smoothly. The presence of an antivirus also cannot guarantee 100% computer security.

In this article, I'll show you how to simplify the process of running your favorite applications as an administrator without disabling UAC (fully or partially) and without compromising security.

To run the application as an administrator, you can use several methods:

As an example, we will run the command line (cmd) as an administrator.

Method No. 1 (usual) - launch via the right mouse button (UAC prompt is displayed)

Right-click on the icon desired application and select " Run as administrator":

Method number 2 - launch using " Ctrl+Shift+Enter" (UAC prompt displayed)

Click Start, in the search bar type the right command and press Ctrl+Shift+Enter.

Method No. 3 - set to run as administrator in the shortcut properties (the UAC prompt is displayed)

Right click on the desired shortcut and select " Properties".

Go to the " tab Label", click " Additionally", check the box " Run as administrator":

Or go to the " Compatibility" and check the box " Run this program as administrator":

Method number 4 - simplify the launch of selected applications using the task scheduler (the UAC prompt is not displayed)

Important! This method only works for accounts that are part of a group Administrators. U ordinary users it won't work because their ceiling is limited rights.

Let's get down to it in an interesting way. If there is an application that you run all the time, and it comes from a reliable software manufacturer, for example, this Windows application- you can simplify the launch. Create a shortcut for the desired program does not take more than 2 minutes and this will allow you to get rid of unnecessary actions in the future. Let's launch task Scheduler (Start---> All programs ---> Standard---> Service---> Task Scheduler) and press " Create a task":

We indicate Name For new task and check the box " Run with highest rights":

Go to the tab Actions, press " Create", in the next window click " Review":

Specify the path to the desired application and click " Open":


Enlarge picture

Click " OK":

Close the scheduler and proceed to creating a shortcut.

To create a shortcut on the desktop, right-click and select " Create" ---> "Label":

In field Property location enter:

Schtasks /run /tn cmd_admin

Where cmd_admin- the name of the task we created. If the name contains spaces, it must be quoted.

Set the name of the shortcut:


Enlarge picture

The shortcut is created and ready to use.

To change the icon, right-click on the shortcut and select " Properties":

Go to the " tab Label"and press " Change icon":

"Review..."

Specify the path to the program:


Enlarge picture

Choose desired icon and close both windows with the " OK":

Now the desired application can be launched as administrator double click using the created shortcut, but the UAC prompt is not displayed and security remains intact.

Utility for automation of "Method No. 4"

If you need to create shortcuts for a large number of programs, it is convenient to use the utility Elevated Shortcut.

Working with the utility comes down to two simple steps:

  • Installation
  • Drag and drop executable file(*.exe, *.bat, *.cmd) to the utility shortcut:

Automatic focus transfer to the running program

The specificity of launching applications from the scheduler is that the focus is not transferred to the window and, for example, to type a command in the command line, you have to additionally click on the window. This behavior can help in automating routine scheduled operations, but for “Method No. 4” it is not always convenient.

There are several methods for "bypassing". They work slightly differently, so choose the one that suits you best. The first one is more convenient for launching programs, and the second one for running scripts.

Add when creating a task:

Using the start command

Program or script:

Arguments:

/c start /d "path_to_program" file_name.exe

/c start /d "C:\Windows\System32\" cmd.exe

Using the NirCmd utility

Program or script:

Path_to_nircmd\nircmd.exe

Arguments:

Exec show "program_path\file_name.exe"

Exec show "C:\Windows\System32\cmd.exe"

Launching the Run dialog as an administrator

Similar to launch command line You can configure the launch of the dialog box " Execute", and the commands entered into it will also be launched as an administrator. The convenience of this approach is that the list of previously used commands is saved, and you can select the one you need from the list.

When creating a task in the scheduler, in the " Creating an Action" indicate:

in field " Program or script":

Rundll32

in field " Add arguments":

Shell32.dll,#61

Download the utility and unpack it. We launch the command line, enter the desired command, the syntax is quite simple:

<путь к утилите> <путь к нужному приложению>

A UAC prompt will be displayed and the application will run as administrator.

Note: IN context menu Windows 7 is very convenient function copy file path: press and hold Shift, right-click on the file, select " Copy as path".

Running programs by a user as an administrator without entering the administrator password

Important! This method is insecure because it allows a user with limited rights to run code with full rights. A cunning user or malware can take advantage of this and compromise the system.

Let's look at one more interesting task: Your account Windows entry is a member of the administrators group, there are one or more accounts that are members of the users group. The user needs to run a program that requires elevated rights. Typically it looks like this: the user right-clicks on the file and selects "Run as Administrator", and is prompted to enter the administrator password:

Of course, giving users an administrator password is not the most good idea. To “get around” this, we will use the AdmiLink utility by Alexey Kuryakin. With its help, the administrator can create a launch shortcut for the user necessary program, while entering the administrator password is required only once - when creating a shortcut. When the user starts the program, the password will be transmitted in encrypted form.


This method will work if the program can only be run as an administrator and the developer did not forget to indicate this condition in the manifest. However, there is still a large number of old programs or programs that can be launched as in normal mode, and on behalf of the administrator (a different set of functions will be available). When you try to launch such a program using AdmiLink, it starts in normal mode (without administrative privileges). And if you try to check the box "Method No. 3. The original style of the author is preserved.

Hi all. With increase viral activity Microsoft has implemented this interesting feature launch applications as run as administrator.

In other words, virus app must be approved by a user with administrator rights before launching. Otherwise, the launch will not occur and will not be able to function.

At the same time, novice users have more questions, since this program(by the way, it’s called UAC) not only monitors the launch of applications, but also controls their removal or modification.

Why do we need these pop-ups? How to use them or disable them altogether? Let's analyze the functionality of the program in more detail.

2 How to delete as administrator?

If a program or file does not want to be deleted, you can try to delete the files as an administrator. To do this, right-click on the file and select delete with the administrator icon.

It often happens that you cannot delete a folder in this way as an administrator; in this case, I recommend that you familiarize yourself with the program. It will remove everything in a matter of seconds without any extra steps.

2.1 How to disable UAC?

When these pop-up windows constantly appear in front of us, there is only one desire - to disable and forget about this program forever. But I would not rush to implement such a solution.

Since disabling the program can seriously “hit” the computer’s protection. And launching something annoying on your computer will become an extremely simple task. Especially if you are not equipped with it.

But if you still want to disable this function, then to do this, just go to control panel -> Accounts users. In the window that opens, select "Change User Account Control settings".

Then select “Never” and click OK.

That's all. If you have any questions, I will be happy to answer them in the comments. Good luck to you!







2024 gtavrl.ru.