Tuesday, June 5, 2018

Run all programs as Administrator on Windows

We have 3 options to run a program as Admin in Windows:

1) Shift Right Click , then run as admin

2) Shortcut –> Properties –> Advanced –> check “Run as  Admin” check box

3) Default all apps to runas admin: Using UAC, we then can disable UAC thereby all apps run as Admin via reduced rights. This is OK for home use but prob. not corp use due to security and policies. If your home environment is secure via router / firewalls and a solid antivirus on the machine consider allow all APPS to runas Admin, this reduces the manual intervention on every app start, see below procedure

3.a

Danger! See here more info

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.

3.b

1 - Add User To Administrators Group And Remove From Users Group:

  1. Log In As Administrator

  2. Go To Run ( WinKey + R )

  3. Type "control userpasswords2"

  4. Select Your Account And Click On "Properties"

  5. Select "Group Membership" Tab

  6. Select "Administrators"

  7. Click OK And OK


2 - Disable Approval Mode

  1. Log In As Administrator

  2. Go To Run ( WinKey + R )

  3. Type "secpol.msc"

  4. Go To Local Polices > Security Options

  5. Find "User Account Control: Switch to the secure desktop when prompting for elevation"

  6. Open It Click Disable It And Click Ok.

  7. Restart Computer( Very Important Log Off Doesn't Work )


Now Every App Will Be Run As Administrator In All Administrator Users

Surprised smile

No comments:

Post a Comment