always run program as administrator – Password Recovery https://www.top-password.com/blog Provide useful password recovery tricks, guides and software Wed, 18 Jul 2018 07:18:11 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.1 4 Ways to Make Your Program Always Run as Administrator https://www.top-password.com/blog/make-your-program-always-run-as-administrator/ Wed, 18 Jul 2018 07:18:11 +0000 https://www.top-password.com/blog/?p=12225 Could I force a program to always run as an administrator? Is it possible to automatically open a batch file as admin when you double-click on it? Many old programs need to be run as administrator in order to function properly on Windows 10 / 8 / 7. In this tutorial we’ll show you 4 methods to make your program always run as administrator by default.

Method 1: Always Run as Administrator from Program Shortcut

  1. Right-click on the shortcut of your program, and then select Properties from the context menu.
  2. In the Properties window, select the Shortcut tab, and click on the Advanced button.

  3. Check the box next to Run as administrator and click OK.

  4. Every time you double-click the shortcut it will always run your program as administrator by default.

Method 2: Always Run as Administrator in Compatibility Mode

  1. Right-click on your application or its shortcut, and then select Properties in the context menu.
  2. Under the Compatibility tab, check the “Run this program as an administrator” box and click OK.

  3. From now on, double-click on your application or shortcut and it should automatically run as administrator.

Method 3: Always Run as Administrator Using Registry Hack

  1. Open the Registry Editor and browse to the following key:
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

    Right-click blank area in the right pane, and then select New -> String Value.

  2. Rename the String value to the full path of the program you want to always run as administrator, and then double-click it to modify.

  3. Type ~ RUNASADMIN in the “Value data” field and click OK.

  4. Close Registry Editor. The program will now open in administrator mode when you double-click it.

Method 4: Create a Batch to Always Run Program as Administrator

  1. Open Notepad (or your favorite text editor), copy and paste the following batch script:
    @echo off :: BatchGotAdmin :------------------------------------- REM --> Check for permissions >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" REM --> If error flag set, we do not have admin. if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" set params = %*:"="" echo UAC.ShellExecute "C:\Program Files (x86)\Top Password\ISO2Disc.exe", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" exit /B :gotAdmin pushd "%CD%" CD /D "%~dp0" :--------------------------------------

    The above script will make the ISO2Disc utility to always run as administrator. You need to replace the full path of ISO2Disc with your desired application.

  2. Next, save the file by clicking File -> Save. Give it any name you like, but replace the default .txt file extension with the .bat extension.

  3. Now, double-click the batch file and it will then launch your program as administrator.
]]>
2 Ways to Run a Program as Administrator in Windows https://www.top-password.com/blog/2-ways-to-run-a-program-as-administrator-in-windows/ Mon, 10 Sep 2012 07:48:21 +0000 http://www.top-password.com/blog/?p=1111 One of the features that make Windows 8/7/Vista securer than its previous versions is that most of the applications are launched by default without having local admin rights, even when you log in as an account that belongs to local administrator group.

And you probably already know that if you want to launch an application with local admin rights, you would have to use Run as Administrator to fire up the application.

Many applications need to be run as administrator in order to function properly, especially older software that haven’t been updated to support Windows 7 or Vista yet. So here I’ll show you 2 ways to run a program as administrator in Windows 8, 7, Vista.

Method 1: Run a Program Once as an Administrator

  1. Navigate to the program folder of the program you want to run. For example, C:\Program Files\Top Password.
  2. Right-click the program icon (the .exe file).
  3. Choose Run As Administrator.
  4. If you see a User Account Control prompt, accept it.

Method 2: Always Run a Program as an Administrator

  1. Navigate to the program folder of the program you want to run. For example, C:\Program Files\Top Password.
    Right-click the program icon (the .exe file).
  2. Choose Properties.
  3. On the Compatibility tab, select the Run This Program As An Administrator option.
  4. Click OK.
  5. If you see a User Account Control prompt, accept it.

You can run a program once as an administrator, or you can set a program to always run as an administrator, which fully depends on your choice.

]]>