Running a Command script with Run As despite logged on as Admin?

Page 1 of 2 12 LastLast

  1. Posts : 812
    Win10
       #1

    Running a Command script with Run As despite logged on as Admin?


    I have two accounts. One being Admin and one being Standard.

    How come some program installers or command scripts need for the Run As Admin even if I am logged on as my Admin account?

    I thought that being logged on as a Standard account, then there would be always the case to Run As Admin.

    But like mentioned, I signed in as the Admin account and some command script gave an error that I need to run it as elevated rights.

    Not all scripts or setup files do this, only some.

    Next time, is there a way to tell if any apps or command scripts need to do a Run As Admin even if logged on as an Admin account?
      My Computer


  2. Posts : 30,595
    Windows 10 (Pro and Insider Pro)
       #2

    Being logged as Admin doesn't give the programs all rights. Still need to confirm their rights (UAC controlled settings)
      My Computers


  3. Posts : 812
    Win10
    Thread Starter
       #3

    Not all scripts or setup files do this, only some.

    Next time, is there a way to tell if any apps or command scripts need to do a Run As Admin even if logged on as an Admin account to avoid these types of error messages?

    Yes, I have the UAC slider all to the maximum.
      My Computer


  4. Posts : 14,018
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #4

    Also, there is another, hidden/default Administrator account which is inactive and should NEVER be routinely run or on a daily basis, does give even more rights than a User with administrative rights.
      My Computers


  5. Posts : 812
    Win10
    Thread Starter
       #5

    Default Admin is disabled.
    Created my own Admin when installing Windows.

    Next time, is there a way to tell if any apps or command scripts need to perform a Run As Admin even if logged on as an Admin account to avoid these error messages?
      My Computer


  6. Posts : 14,018
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #6

    win10freak said:
    Default Admin is disabled.
    Created my own Admin when installing Windows.

    Next time, is there a way to tell if any apps or command scripts need to perform a Run As Admin even if logged on as an Admin account to avoid these error messages?
    Those are not "error" messages but prompts that additional choices have to be made. Only sure way to avoid them is to turn UAC off but that leaves the computer at risk from things like viruses, malware, trojans, etc., and perhaps access from outside such as hackers.
      My Computers


  7. Posts : 30,595
    Windows 10 (Pro and Insider Pro)
       #7

    win10freak said:
    Default Admin is disabled.
    Created my own Admin when installing Windows.

    Next time, is there a way to tell if any apps or command scripts need to perform a Run As Admin even if logged on as an Admin account to avoid these error messages?
    Any program that you know it will get access to other program's location, or to check system files, or to write in protected locations, etc., need to be run as elevated. And all should be run as elevated at the state of installation (when writing to Program data or Program file folders).

    Only if program is installed in other, non protected areas, it will not need to be elevated.

    nice explanation can be found in Brink's tutorial about enabling or disabling UAC
      My Computers


  8. Posts : 812
    Win10
    Thread Starter
       #8

    With Run As selected when right clicking on the program, it ran fine.

    When I logon to my Admin account, is it recommended to perform a Run As Admin account for all setup files and scripts or for some? Or it really depends on the type of app?

    MS Office for example, does not require the Run As Admin. How come?
      My Computer


  9. Posts : 524
    Windows 11 Pro x64, Windows 10 Pro x64
       #9

    win10freak said:



    Still confused as to why some apps require elevated rights even when I logon as Admin account?
    This is to prevent malware from running when you are logged in as administrator. An administrator must be elevated to get full control.
      My Computers


  10. Posts : 812
    Win10
    Thread Starter
       #10

    MS Office for example, does not require the Run As Admin. How come?

    I just click on Setup and it installs from the Admin account.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:17.
Find Us




Windows 10 Forums